| @@ -34,9 +34,12 @@ | ||
| 34 | 34 | public function __construct($joinType, $table, $alias = null) |
| 35 | 35 | { |
| 36 | 36 | $this->table = QueryBuilder::prefixTable($table); |
| 37 | 37 | $this->joinType = $this->getJoinType($joinType); |
| 38 | - $this->alias = trim($alias); | |
| 38 | + | |
| 39 | + if ( ! is_null($alias)) { | |
| 40 | + $this->alias = trim($alias); | |
| 41 | + } | |
| 39 | 42 | } |
| 40 | 43 | |
| 41 | 44 | /** |
| 42 | 45 | * @param string $type |