diff options
author | Francois Ferrand <thetypz@gmail.com> | 2014-12-09 17:31:36 +0100 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2014-12-09 17:32:54 +0100 |
commit | 076034c282c2b2aafb6489ef0d22cd73a3df1edc (patch) | |
tree | 0c2082ff9b199b2127aa067ef436845bf297739e /jsonrpc.php | |
parent | 515e29461fcf3060b940cc9304dda254adba2d17 (diff) |
Fix value returned by createProject.
Diffstat (limited to 'jsonrpc.php')
-rw-r--r-- | jsonrpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonrpc.php b/jsonrpc.php index 75a55c92..28c640ea 100644 --- a/jsonrpc.php +++ b/jsonrpc.php @@ -61,7 +61,7 @@ $server->bind('disableProjectPublicAccess', $projectModel, 'disablePublicAccess' $server->register('createProject', function($name) use ($projectModel) { $values = array('name' => $name); list($valid,) = $projectModel->validateCreation($values); - return $valid && $projectModel->create($values); + return $valid ? $projectModel->create($values) : false; }); $server->register('updateProject', function($id, $name, $is_active = null, $is_public = null, $token = null) use ($projectModel) { |