From 20a7ee9d11b9a004697e29232980c0fb03f3fed8 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 3 Jan 2015 19:36:45 +0100 Subject: [PATCH] adding more function to AlternC-api account class --- lib/Alternc/Api/Object/Account.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Alternc/Api/Object/Account.php b/lib/Alternc/Api/Object/Account.php index 70be5c4e..476202f0 100644 --- a/lib/Alternc/Api/Object/Account.php +++ b/lib/Alternc/Api/Object/Account.php @@ -127,14 +127,16 @@ class Alternc_Api_Object_Account { if ($result) $result=array($result); } if (!$result && isset($options["login"])) { - $result=$this->admin->get_list(1/*ALL*/, "", $options["login"], "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"); + $result=$this->admin->get_list(1/*ALL*/, "", $options["domain"], "domaine"); } if (!$result && isset($options["creator"])) { - $result=$this->admin->get_list(1/*ALL*/, intval($options["creator"])); + $result=$this->admin->get_list(1/*ALL*/, intval($options["creator"])); + } + if (!$result) { // everybody + $result=$this->admin->get_list(1/*ALL*/, ""); } if (!$result) {