From b0ffb06c321e215a610dc6f3f51af0cb35edc248 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 26 Jul 2011 11:23:47 +0200 Subject: [PATCH] Fixed missing array index Without that index, multiple objects of one listener are created --- wcfsetup/install/files/lib/system/event/EventHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/event/EventHandler.class.php b/wcfsetup/install/files/lib/system/event/EventHandler.class.php index 86bf6fede0..3b954c89fd 100644 --- a/wcfsetup/install/files/lib/system/event/EventHandler.class.php +++ b/wcfsetup/install/files/lib/system/event/EventHandler.class.php @@ -107,7 +107,7 @@ class EventHandler extends SingletonFactory { } $object = new $action['listenerClassName']; - $this->listenerObjects[] = $object; + $this->listenerObjects[$action['listenerClassName']] = $object; } if ($object !== null) $this->inheritedActionsObjects[$name][$action['listenerClassName']] = $object; -- 2.20.1