Fix PHP 5.3 compatiblity

This commit is contained in:
Frederic Guillot 2015-04-18 10:55:55 -04:00
parent ede4a9a93d
commit 8330123f34
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ $server->register('createAction', function($project_id, $event_name, $action_nam
}
// Check the action exists
if (! isset($container['action']->getAvailableActions()[$action_name])) {
$actions = $container['action']->getAvailableActions();
if (! isset($actions[$action_name])) {
return false;
}