@@ 283-285 (lines=3) @@ | ||
280 | } |
|
281 | $query .= ' ORDER BY id'; |
|
282 | $result = $this->_config->getDb()->query($query); |
|
283 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
|
284 | $this->categories[$row['id']] = $row; |
|
285 | } |
|
286 | ||
287 | return $this->categories; |
|
288 | } |
|
@@ 989-991 (lines=3) @@ | ||
986 | $num = $this->_config->getDb()->numRows($result); |
|
987 | $this->categories = []; |
|
988 | if ($num > 0) { |
|
989 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
|
990 | $this->categories[intval($row['id'])] = $row; |
|
991 | } |
|
992 | } |
|
993 | ||
994 | return $this->categories; |