From 0dce66e4a012fe3ede44d72c1ba5091b80bf858a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 2 Aug 2016 10:41:43 +0200 Subject: [PATCH] Fix error while reading mail hooks --- mail/inc/class.mail_hooks.inc.php | 1 + 1 file changed, 1 insertion(+) 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); }