From e15b7fd6ec5ae770ce232b2a0cea7b281254d96e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 4 Sep 2013 20:22:49 +0200 Subject: Correct bug: last category was not shown --- app/models/Category.php | 3 +++ 1 file changed, 3 insertions(+) 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'], -- cgit v1.2.3