@@ -47,8 +47,9 @@ discard block |
||
47 | 47 | { |
48 | 48 | try { |
49 | 49 | $query = "SELECT {$fields} FROM {$this->getTable()}"; |
50 | - if (!empty($this->getTableAlias())) |
|
51 | - $query .= " AS {$this->getTableAlias()}"; |
|
50 | + if (!empty($this->getTableAlias())) { |
|
51 | + $query .= " AS {$this->getTableAlias()}"; |
|
52 | + } |
|
52 | 53 | $this->add($query, "main", $paramns); |
53 | 54 | return $this; |
54 | 55 | } catch (\PDOException $e) { |
@@ -429,8 +430,9 @@ discard block |
||
429 | 430 | $this->sqlPartsSelect[$type] = $query; |
430 | 431 | } |
431 | 432 | |
432 | - if (!empty($params)) |
|
433 | - $this->params = array_merge($this->params, $params); |
|
433 | + if (!empty($params)) { |
|
434 | + $this->params = array_merge($this->params, $params); |
|
435 | + } |
|
434 | 436 | } catch (\PDOException $e) { |
435 | 437 | $this->setError($e); |
436 | 438 | } |