mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Make sure category data is an array before looking inside it, avoids warning if it is not
This commit is contained in:
parent
18642b02ea
commit
3da08fa7a1
@ -950,7 +950,7 @@ class Nextmatch extends Etemplate\Widget
|
||||
'no_lang' => true,
|
||||
);
|
||||
// add category icon
|
||||
if ($cat['data']['icon'] && file_exists(EGW_SERVER_ROOT.self::ICON_PATH.'/'.basename($cat['data']['icon'])))
|
||||
if (is_array($cat['data']) && $cat['data']['icon'] && file_exists(EGW_SERVER_ROOT.self::ICON_PATH.'/'.basename($cat['data']['icon'])))
|
||||
{
|
||||
$cat_actions[$cat['id']]['iconUrl'] = $GLOBALS['egw_info']['server']['webserver_url'].self::ICON_PATH.'/'.$cat['data']['icon'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user