Do not dereference otherwise the fix does not help :)
authorGunnar Wrobel <p@rdus.de>
Thu, 5 Nov 2009 06:00:47 +0000 (07:00 +0100)
committerGunnar Wrobel <p@rdus.de>
Thu, 5 Nov 2009 06:00:47 +0000 (07:00 +0100)
framework/Notification/lib/Horde/Notification/Handler/Base.php

index 83e7ed6..a905ad1 100644 (file)
@@ -219,8 +219,12 @@ implements Horde_Notification_Handler_Interface
     {
         foreach ($options['listeners'] as $listener) {
             if (isset($this->_listeners[$listener])) {
-                $stack = $this->_storage->get($this->_listeners[$listener]->getName());
-                $this->_listeners[$listener]->notify($stack, $options);
+                $this->_listeners[$listener]->notify(
+                    $this->_storage->get(
+                        $this->_listeners[$listener]->getName()
+                    ),
+                    $options
+                );
             }
         }
     }