various minor bugfixes; composer requirements update

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-10 00:17:11 +02:00
parent 31500522ce
commit 50e35e149c
45 changed files with 397 additions and 354 deletions

View File

@@ -89,7 +89,7 @@ class HostingPlans extends ApiCommand implements ResourceEntity
* returns the total number of accessible hosting plans
*
* @access admin
* @return string json-encoded array
* @return string json-encoded response message
* @throws Exception
*/
public function listingCount()
@@ -107,6 +107,7 @@ class HostingPlans extends ApiCommand implements ResourceEntity
if ($result) {
return $this->response($result['num_plans']);
}
return $this->response(0);
}
throw new Exception("Not allowed to execute given command.", 403);
}