aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-28 23:58:00 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-28 23:58:00 +0100
commitc29cbb7b8be95fee249ed1a21dce98a4772d92e2 (patch)
treeb116f6033ea081c6cc5f82ce83156f2a7021166c /app/Controllers/indexController.php
parent33cdfbb309c61167cf1c81273eb242f94ca8f996 (diff)
Fix regressions on some array structures (#7155)
regressions from https://github.com/FreshRSS/FreshRSS/pull/7131 fix https://github.com/FreshRSS/FreshRSS/issues/7154
Diffstat (limited to 'app/Controllers/indexController.php')
-rw-r--r--app/Controllers/indexController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index fffc15b2a..3737f2dfd 100644
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -218,7 +218,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
Minz_Error::error(404);
return;
}
- $this->view->categories = [ $cat ];
+ $this->view->categories = [$cat->id() => $cat];
break;
case 'f':
// We most likely already have the feed object in cache
@@ -231,7 +231,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
return;
}
}
- $this->view->feeds = [ $feed ];
+ $this->view->feeds = [$feed->id() => $feed];
break;
case 's':
case 't':