adding more function to AlternC-api account class
This commit is contained in:
parent
3b9f0585fa
commit
20a7ee9d11
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue