From c3b649fc8ec141acb751f1dd5431cf3e3ac42bde Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sat, 15 Aug 2009 12:22:02 -0600 Subject: [PATCH] Make sure imap_ob exists --- imp/lib/Notification/Listener/Status.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.11.0