Skip to content

Commit

Permalink
#2 fix pool active events
Browse files Browse the repository at this point in the history
  • Loading branch information
loveorigami committed Aug 18, 2015
1 parent c70abcd commit bf530bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ protected function includeEvents($plugin_id, $handlerClass)
foreach (self::$plugins_pool[$handlerClass]['events'] as $className => $events) {
foreach ($events as $eventName => $handler) {

$handlerActive = self::$plugins_active[$handlerClass]['events'][$className][$eventName];
$handlerActive = isset(self::$plugins_active[$handlerClass]['events'][$className][$eventName]) ?
self::$plugins_active[$handlerClass]['events'][$className][$eventName] : '';

$handlerMethodActive = is_array($handlerActive) ? $handlerActive[0] : $handlerActive;
$handlerMethodPool = is_array($handler) ? $handler[0] : $handler;

Expand Down

0 comments on commit bf530bc

Please sign in to comment.