More robust assignment of categories to feeds (#5986)

Several minor cases, none of which should really be necessary
Might help:
https://github.com/FreshRSS/FreshRSS/issues/5981
https://github.com/FreshRSS/FreshRSS/issues/5982
This commit is contained in:
Alexandre Alapetite
2023-12-27 15:18:36 +01:00
committed by GitHub
parent e968964538
commit d65f77c081
6 changed files with 11 additions and 7 deletions

View File

@@ -221,7 +221,7 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController {
$id = null;
}
$this->view->categories = $categoryDAO->listCategories() ?: [];
$this->view->categories = $categoryDAO->listCategories(true) ?: [];
$this->view->feed = $id === null ? null : $feedDAO->searchById($id);
$this->view->days = $statsDAO->getDays();
$this->view->months = $statsDAO->getMonths();