From: Gunnar Wrobel Date: Sun, 28 Feb 2010 09:57:34 +0000 (+0100) Subject: Additional check if the dependencies are available. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f26e27822ab9f3ae548c3b23eb5af81daf2c522d;p=horde.git Additional check if the dependencies are available. --- diff --git a/framework/Notification/lib/Horde/Notification/Event/Status.php b/framework/Notification/lib/Horde/Notification/Event/Status.php index f4fb39caf..d185bd040 100644 --- a/framework/Notification/lib/Horde/Notification/Event/Status.php +++ b/framework/Notification/lib/Horde/Notification/Event/Status.php @@ -22,7 +22,7 @@ class Horde_Notification_Event_Status extends Horde_Notification_Event { $text = $this->message; - if (!in_array('content.raw', $this->flags)) { + if (!in_array('content.raw', $this->flags) && class_exists('Horde_Nls')) { $text = htmlspecialchars($text, ENT_COMPAT, Horde_Nls::getCharset()); } diff --git a/framework/Notification/lib/Horde/Notification/Listener/Status.php b/framework/Notification/lib/Horde/Notification/Listener/Status.php index 0178b9a59..28274d4d3 100644 --- a/framework/Notification/lib/Horde/Notification/Listener/Status.php +++ b/framework/Notification/lib/Horde/Notification/Listener/Status.php @@ -38,7 +38,7 @@ class Horde_Notification_Listener_Status extends Horde_Notification_Listener return; } - if (!empty($options['mobile'])) { + if (!empty($options['mobile']) && class_exists('Horde_Mobile_Text')) { foreach ($events as $event) { $options['mobile']->add(new Horde_Mobile_Text(strip_tags($event))); }