diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-18 10:55:55 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-18 10:55:55 -0400 |
commit | 8330123f3469ebf963d1d7711fff2bf8b03c97c3 (patch) | |
tree | 9bc0da02b26282caa71477eee1cb34740a9a15b0 /jsonrpc.php | |
parent | ede4a9a93d03a3efa6a364e36f178ed448a1d259 (diff) |
Fix PHP 5.3 compatiblity
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; } |