@@ -134,9 +134,9 @@ |
||
134 | 134 | $tmp = array(); |
135 | 135 | foreach($sort as $sort_col=>$dir) |
136 | 136 | { |
137 | - array_push($tmp, $sort_col.' '.($dir === 1? 'ASC' : 'DESC')); |
|
137 | + array_push($tmp, $sort_col.' '.($dir === 1 ? 'ASC' : 'DESC')); |
|
138 | 138 | } |
139 | - $sql .= implode($tmp,','); |
|
139 | + $sql .= implode($tmp, ','); |
|
140 | 140 | } |
141 | 141 | $stmt = $this->pdo->query($sql, \PDO::FETCH_ASSOC); |
142 | 142 | if($stmt === false) |