diff options
Diffstat (limited to 'app/Controllers/statsController.php')
| -rw-r--r-- | app/Controllers/statsController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/statsController.php b/app/Controllers/statsController.php index f40f0dd29..8ff2744ae 100644 --- a/app/Controllers/statsController.php +++ b/app/Controllers/statsController.php @@ -193,7 +193,7 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController { if ($id !== 0) { $this->view->displaySlider = true; $feedDAO = FreshRSS_Factory::createFeedDao(); - $this->view->feed = $feedDAO->searchById($id); + $this->view->feed = $feedDAO->searchById($id) ?? FreshRSS_Feed::default(); } } @@ -222,7 +222,7 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController { } $this->view->categories = $categoryDAO->listCategories(true) ?: []; - $this->view->feed = $id === null ? null : $feedDAO->searchById($id); + $this->view->feed = $id === null ? FreshRSS_Feed::default() : ($feedDAO->searchById($id) ?? FreshRSS_Feed::default()); $this->view->days = $statsDAO->getDays(); $this->view->months = $statsDAO->getMonths(); |
