No longer necessary.
authorJan Schneider <jan@horde.org>
Fri, 20 Nov 2009 16:23:18 +0000 (17:23 +0100)
committerJan Schneider <jan@horde.org>
Fri, 20 Nov 2009 16:23:18 +0000 (17:23 +0100)
framework/Notification/lib/Horde/Notification/Listener.php

index b9ff0a1..7708561 100644 (file)
@@ -75,15 +75,10 @@ abstract class Horde_Notification_Listener
      */
     public function getEvent($message)
     {
-        $ob = false;
-        if (class_exists($message['class'])) {
-            $ob = @unserialize($message['event']);
-        } else {
-            $ob = @unserialize($message['event']);
-            if (!is_callable(array($ob, 'getMessage'))) {
-                if (isset($ob->_message)) {
-                    $ob = new Horde_Notification_Event($ob->_message);
-                }
+        $ob = @unserialize($message['event']);
+        if (!is_callable(array($ob, 'getMessage'))) {
+            if (isset($ob->_message)) {
+                $ob = new Horde_Notification_Event($ob->_message);
             }
         }