From: Matthias Schmidt Date: Tue, 26 Jul 2011 09:23:47 +0000 (+0200) Subject: Fixed missing array index X-Git-Tag: 2.0.0_Beta_1~1950^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0ffb06c321e215a610dc6f3f51af0cb35edc248;p=GitHub%2FWoltLab%2FWCF.git Fixed missing array index Without that index, multiple objects of one listener are created --- 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;