various minor bugfixes; composer requirements update
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user