From: Michael M Slusarz Date: Sat, 15 Aug 2009 18:22:02 +0000 (-0600) Subject: Make sure imap_ob exists X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c3b649fc8ec141acb751f1dd5431cf3e3ac42bde;p=horde.git Make sure imap_ob exists --- diff --git a/imp/lib/Notification/Listener/Status.php b/imp/lib/Notification/Listener/Status.php index a49ac986f..ad71108d5 100644 --- a/imp/lib/Notification/Listener/Status.php +++ b/imp/lib/Notification/Listener/Status.php @@ -75,8 +75,10 @@ class IMP_Notification_Listener_Status extends Horde_Notification_Listener_Statu } /* Display IMAP alerts. */ - foreach ($GLOBALS['imp_imap']->ob->alerts() as $alert) { - $GLOBALS['notification']->push($alert, 'horde.warning'); + if (isset($GLOBALS['imp_imap']->ob)) { + foreach ($GLOBALS['imp_imap']->ob->alerts() as $alert) { + $GLOBALS['notification']->push($alert, 'horde.warning'); + } } parent::notify($messageStack, $options);