Fix error while reading mail hooks

This commit is contained in:
Hadi Nategh 2016-08-02 10:41:43 +02:00
parent 2a4535be58
commit 0dce66e4a0

View File

@ -446,6 +446,7 @@ class mail_hooks
{ {
foreach ($menu['items'] as &$item) foreach ($menu['items'] as &$item)
{ {
if (!is_array($item)) continue;
if (array_key_exists('enable', $item) && !$item['enable']) { if (array_key_exists('enable', $item) && !$item['enable']) {
unset($item); unset($item);
} }