aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Category.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-30 12:43:39 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-30 12:43:39 +0100
commit4d6ab45b03031e1c13ac2d3589364a43a0fe5578 (patch)
tree92fcd795eb44fb89c0b95676ce30b303eb415542 /app/Models/Category.php
parent3cc073f2d1dd4a5fef5d66e6f30c4496bf2e6421 (diff)
Micro-optimisation : évite is_null et quelques if/else
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/303
Diffstat (limited to 'app/Models/Category.php')
-rw-r--r--app/Models/Category.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php
index e70d1303f..8e1e44ef8 100644
--- a/app/Models/Category.php
+++ b/app/Models/Category.php
@@ -48,7 +48,7 @@ class FreshRSS_Category extends Minz_Model {
return $this->nbNotRead;
}
public function feeds () {
- if (is_null ($this->feeds)) {
+ if ($this->feeds === null) {
$feedDAO = new FreshRSS_FeedDAO ();
$this->feeds = $feedDAO->listByCategory ($this->id ());
$this->nbFeed = 0;