From 076034c282c2b2aafb6489ef0d22cd73a3df1edc Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Tue, 9 Dec 2014 17:31:36 +0100 Subject: Fix value returned by createProject. --- jsonrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3