From 379eb053a3ccf2c88f92e41b2250a9991107c18b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 15 Nov 2021 12:09:36 +0100 Subject: [PATCH] Fix PHP8.0 error Cannot access offset of type string on string --- home/inc/class.home_favorite_portlet.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/inc/class.home_favorite_portlet.inc.php b/home/inc/class.home_favorite_portlet.inc.php index fd6543e282..7797e973cc 100644 --- a/home/inc/class.home_favorite_portlet.inc.php +++ b/home/inc/class.home_favorite_portlet.inc.php @@ -94,7 +94,7 @@ class home_favorite_portlet extends home_portlet $need_reload = true; } - $this->favorite = $context['favorite']; + $this->favorite = (array)$context['favorite']; $this->title = lang($context['appname']) . ': ' . $this->favorite['name']; $this->context = $context; if($this->favorite)