diff options
| author | 2014-03-01 20:56:27 +0100 | |
|---|---|---|
| committer | 2014-03-01 20:56:27 +0100 | |
| commit | a8d06d12705a6467f2d11a8a6afc51ae2ea7088a (patch) | |
| tree | 7843e17b569c821f450c5d0c2b77fdd73a651573 /app/Controllers/indexController.php | |
| parent | 6939b7989b4ee96d3126f8665faaef70ebe10cbc (diff) | |
Micro-optimisation is_null
https://github.com/marienfressinaud/FreshRSS/pull/434
https://github.com/marienfressinaud/FreshRSS/issues/428
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index c760e0f01..c83c5b630 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -112,7 +112,7 @@ class FreshRSS_index_Controller extends Minz_ActionController { $hasUnread = true; break; } - if (!$hasUnread && is_null($state_param)) { + if (!$hasUnread && ($state_param === null)) { $this->view->state = $state = 'all'; } } @@ -130,7 +130,7 @@ class FreshRSS_index_Controller extends Minz_ActionController { // Si on a récupéré aucun article "non lus" // on essaye de récupérer tous les articles - if ($state === 'not_read' && empty($entries) && is_null($state_param)) { + if ($state === 'not_read' && empty($entries) && ($state_param === null)) { Minz_Log::record ('Conflicting information about nbNotRead!', Minz_Log::DEBUG); $this->view->state = 'all'; $entries = $entryDAO->listWhere($getType, $getId, 'all', $order, $nb, $first, $filter, $date_min, $keepHistoryDefault); |
