@@ -49,8 +49,9 @@ discard block |
||
49 | 49 | { |
50 | 50 | try { |
51 | 51 | $query = "SELECT {$fields} FROM {$this->getTable()}"; |
52 | - if (!empty($this->getTableAlias())) |
|
53 | - $query .= " AS {$this->getTableAlias()}"; |
|
52 | + if (!empty($this->getTableAlias())) { |
|
53 | + $query .= " AS {$this->getTableAlias()}"; |
|
54 | + } |
|
54 | 55 | $this->add($query, "main", $paramns); |
55 | 56 | return $this; |
56 | 57 | } catch (\PDOException $e) { |
@@ -404,8 +405,9 @@ discard block |
||
404 | 405 | $this->sqlPartsSelect[$type] = $query; |
405 | 406 | } |
406 | 407 | |
407 | - if (!empty($params)) |
|
408 | - $this->setParameter($params); |
|
408 | + if (!empty($params)) { |
|
409 | + $this->setParameter($params); |
|
410 | + } |
|
409 | 411 | } catch (\PDOException $e) { |
410 | 412 | $this->setError($e); |
411 | 413 | } |