|
@@ 334-336 (lines=3) @@
|
| 331 |
|
} |
| 332 |
|
$query .= ' ORDER BY id'; |
| 333 |
|
$result = $this->config->getDb()->query($query); |
| 334 |
|
while ($row = $this->config->getDb()->fetchArray($result)) { |
| 335 |
|
$this->categories[$row['id']] = $row; |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
return $this->categories; |
| 339 |
|
} |
|
@@ 1226-1228 (lines=3) @@
|
| 1223 |
|
$num = $this->config->getDb()->numRows($result); |
| 1224 |
|
$this->categories = []; |
| 1225 |
|
if ($num > 0) { |
| 1226 |
|
while ($row = $this->config->getDb()->fetchArray($result)) { |
| 1227 |
|
$this->categories[intval($row['id'])] = $row; |
| 1228 |
|
} |
| 1229 |
|
} |
| 1230 |
|
|
| 1231 |
|
return $this->categories; |