From 3da08fa7a17f5df9a8119b4e659e27496c0ca1b7 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 3 Oct 2016 09:58:59 -0600 Subject: [PATCH] Make sure category data is an array before looking inside it, avoids warning if it is not --- api/src/Etemplate/Widget/Nextmatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Nextmatch.php b/api/src/Etemplate/Widget/Nextmatch.php index 4d6cb18f75..f676c56aae 100644 --- a/api/src/Etemplate/Widget/Nextmatch.php +++ b/api/src/Etemplate/Widget/Nextmatch.php @@ -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']; }