diff --git a/restapi/index.php b/restapi/index.php index bf62f1064..b99c71978 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -390,11 +390,11 @@ final class SeedDMS_RestapiController { /* {{{ */ $id = $args['id']; if($id == 0) { - return $this->renderer->json($response, array('success'=>true, 'message'=>'id is 0', 'data'=>''))->withStatus(200); + return $this->renderer->json($response, array('success'=>true, 'message'=>'Id is 0', 'data'=>''))->withStatus(200); } $root = $dms->getRootFolder(); if($root->getId() == $id) { - return $this->renderer->json($response, array('success'=>true, 'message'=>'id is root folder', 'data'=>''))->withStatus(200); + return $this->renderer->json($response, array('success'=>false, 'message'=>'Id is root folder', 'data'=>''))->withStatus(200); } $folder = $dms->getFolder($id); if($folder) {