|
@@ 275-277 (lines=3) @@
|
| 272 |
|
} |
| 273 |
|
$query .= ' ORDER BY id'; |
| 274 |
|
$result = $this->_config->getDb()->query($query); |
| 275 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 276 |
|
$this->categories[$row['id']] = $row; |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
return $this->categories; |
| 280 |
|
} |
|
@@ 299-301 (lines=3) @@
|
| 296 |
|
$query .= " WHERE lang = '".$this->language."'"; |
| 297 |
|
} |
| 298 |
|
$result = $this->_config->getDb()->query($query); |
| 299 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 300 |
|
$this->categories[$row['id']] = $row; |
| 301 |
|
} |
| 302 |
|
|
| 303 |
|
return $this->categories; |
| 304 |
|
} |
|
@@ 974-976 (lines=3) @@
|
| 971 |
|
$num = $this->_config->getDb()->numRows($result); |
| 972 |
|
$this->categories = []; |
| 973 |
|
if ($num > 0) { |
| 974 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 975 |
|
$this->categories[intval($row['id'])] = $row; |
| 976 |
|
} |
| 977 |
|
} |
| 978 |
|
|
| 979 |
|
return $this->categories; |