From 4ab58d686fbf77a9c4e15db912038f2e45711f28 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Thu, 5 Nov 2009 00:16:45 +0100 Subject: [PATCH] Fix clearing the message stacks. Looks like I should avoid implementing ArrayAcces for the storage handler. That prevents passing around the stacks by reference. --- framework/Notification/lib/Horde/Notification/Handler/Base.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } } -- 2.11.0