aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-06-16 20:28:57 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-06-16 20:28:57 +0200
commit36316a6d7e81c3e73cad1362194e73a9006b0c72 (patch)
tree3b68e5a223cd67e98c5a2d948d4da93b30198e74 /app/models
parente3b3fa39d8b51bb571d2d15dafcfc94d4ab28787 (diff)
Implémentation des vues lecture et globale (issue #67)
Diffstat (limited to 'app/models')
-rwxr-xr-xapp/models/Category.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/Category.php b/app/models/Category.php
index 273559b1e..0c991588d 100755
--- a/app/models/Category.php
+++ b/app/models/Category.php
@@ -35,10 +35,10 @@ class Category extends Model {
public function feeds () {
if (is_null ($this->feeds)) {
$feedDAO = new FeedDAO ();
- return $feedDAO->listByCategory ($this->id ());
- } else {
- return $this->feeds;
+ $this->feeds = $feedDAO->listByCategory ($this->id ());
}
+
+ return $this->feeds;
}
public function _id ($value) {