summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-09-04 20:22:49 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-09-04 20:22:49 +0200
commite15b7fd6ec5ae770ce232b2a0cea7b281254d96e (patch)
tree09bea912605fc6525a2d67e394a455198582494b
parentcf62bcd3d31a801a16a06608b6a953613f68fbde (diff)
Correct bug: last category was not shown
-rwxr-xr-xapp/models/Category.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/Category.php b/app/models/Category.php
index 1e9ec9e80..362bce621 100755
--- a/app/models/Category.php
+++ b/app/models/Category.php
@@ -281,6 +281,9 @@ class HelperCategory {
$line = $listDAO[$i];
$cat_id = $line['c_id'];
if (($i > 0) && (($cat_id !== $previousLine['c_id']) || ($i === $nbLinesMinus1))) { //End of current category
+ if ($i === $nbLinesMinus1) { //End of table
+ $feedsDao[] = $line;
+ }
$cat = new Category (
$previousLine['c_name'],
$previousLine['c_color'],