adding more function to AlternC-api account class

This commit is contained in:
Benjamin Sonntag 2015-01-03 19:36:45 +01:00
parent 3b9f0585fa
commit 20a7ee9d11
1 changed files with 6 additions and 4 deletions

View File

@ -128,7 +128,6 @@ class Alternc_Api_Object_Account {
}
if (!$result && isset($options["login"])) {
$result=$this->admin->get_list(1/*ALL*/, "", $options["login"], "login");
}
if (!$result && isset($options["domain"])) {
$result=$this->admin->get_list(1/*ALL*/, "", $options["domain"], "domaine");
@ -136,6 +135,9 @@ class Alternc_Api_Object_Account {
if (!$result && isset($options["creator"])) {
$result=$this->admin->get_list(1/*ALL*/, intval($options["creator"]));
}
if (!$result) { // everybody
$result=$this->admin->get_list(1/*ALL*/, "");
}
if (!$result) {
return $this->alterncLegacyErrorManager();