Fixed missing array index
authorMatthias Schmidt <gravatronics@live.com>
Tue, 26 Jul 2011 09:23:47 +0000 (11:23 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 26 Jul 2011 09:23:47 +0000 (11:23 +0200)
Without that index, multiple objects of one listener are created

wcfsetup/install/files/lib/system/event/EventHandler.class.php

index 86bf6fede0eb019912d1cdb49ed30c2b9bfc2f88..3b954c89fdfcbf26a0adcb362b73428ec080f08e 100644 (file)
@@ -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;