Home: Avoid "Illegal offset type" if somehow favorite was not set

This commit is contained in:
nathan 2023-03-16 08:45:33 -06:00
parent cdb0998bee
commit 005686b469

View File

@ -85,7 +85,7 @@ class home_favorite_portlet extends home_portlet
} }
// Load and copy favorite // Load and copy favorite
if($context['favorite']) if($context['appname'])
{ {
$favorites = Framework\Favorites::get_favorites($context['appname']); $favorites = Framework\Favorites::get_favorites($context['appname']);
} }