Explorar o código

Correct bug: last category was not shown

Alexandre Alapetite %!s(int64=12) %!d(string=hai) anos
pai
achega
e15b7fd6ec
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      app/models/Category.php

+ 3 - 0
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'],