summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php2
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) {