diff options
Diffstat (limited to 'jsonrpc.php')
-rw-r--r-- | jsonrpc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jsonrpc.php b/jsonrpc.php index afc1ed18..9bf065f8 100644 --- a/jsonrpc.php +++ b/jsonrpc.php @@ -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; } |