From: Chuck Hagenbuch Date: Fri, 24 Jul 2009 02:45:11 +0000 (-0400) Subject: don't try and fetch alarms for all users when no one is logged in X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c0f24e840cdb842acc337e2c26d07ed36dfef1af;p=horde.git don't try and fetch alarms for all users when no one is logged in --- diff --git a/framework/Notification/lib/Horde/Notification.php b/framework/Notification/lib/Horde/Notification.php index a45e50c70..e60814669 100644 --- a/framework/Notification/lib/Horde/Notification.php +++ b/framework/Notification/lib/Horde/Notification.php @@ -204,7 +204,7 @@ class Horde_Notification $options['listeners'] = array_map('strtolower', $options['listeners']); - if ($this->_alarm && in_array('status', $options['listeners'])) { + if ($this->_alarm && Horde_Auth::getAuth() && in_array('status', $options['listeners'])) { $this->_alarm->notify(Horde_Auth::getAuth()); }