From: Gunnar Wrobel Date: Wed, 4 Nov 2009 23:16:45 +0000 (+0100) Subject: Fix clearing the message stacks. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4ab58d686fbf77a9c4e15db912038f2e45711f28;p=horde.git Fix clearing the message stacks. Looks like I should avoid implementing ArrayAcces for the storage handler. That prevents passing around the stacks by reference. --- diff --git a/framework/Notification/lib/Horde/Notification/Handler/Base.php b/framework/Notification/lib/Horde/Notification/Handler/Base.php index 8d6766942..0753e898f 100644 --- a/framework/Notification/lib/Horde/Notification/Handler/Base.php +++ b/framework/Notification/lib/Horde/Notification/Handler/Base.php @@ -218,8 +218,9 @@ implements Horde_Notification_Handler_Interface { foreach ($options['listeners'] as $listener) { if (isset($this->_listeners[$listener])) { - $instance = $this->_storage[$this->_listeners[$listener]->getName()]; - $this->_listeners[$listener]->notify($instance, $options); + $stack = $this->_storage[$this->_listeners[$listener]->getName()]; + $this->_listeners[$listener]->notify($stack, $options); + $this->_storage[$this->_listeners[$listener]->getName()] = $stack; } } }