diff --git a/mail/inc/class.mail_hooks.inc.php b/mail/inc/class.mail_hooks.inc.php index 88860f6f89..943f66d152 100644 --- a/mail/inc/class.mail_hooks.inc.php +++ b/mail/inc/class.mail_hooks.inc.php @@ -446,6 +446,7 @@ class mail_hooks { foreach ($menu['items'] as &$item) { + if (!is_array($item)) continue; if (array_key_exists('enable', $item) && !$item['enable']) { unset($item); }