From a311f8bad1795763e7d34037d1fa8af7acf6925b Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 1 Mar 2001 15:32:52 +0000 Subject: [PATCH] Make get_list return allValues[0]["???][0] instead of using non incrementing $i --- phpgwapi/inc/class.accounts_ldap.inc.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 695509a3b0..a7c7b73a6a 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -122,11 +122,11 @@ $sri = ldap_search($ds, $phpgw_info["server"]["ldap_context"], "uidnumber=".$this->db->f("account_id")); $allValues = ldap_get_entries($ds, $sri); $accounts[] = Array( - "account_id" => $allValues[$i]["uidnumber"][0], - "account_lid" => $allValues[$i]["uid"][0], + "account_id" => $allValues[0]["uidnumber"][0], + "account_lid" => $allValues[0]["uid"][0], "account_type" => $this->db->f("account_type"), - "account_firstname" => $allValues[$i]["givenname"][0], - "account_lastname" => $allValues[$i]["sn"][0], + "account_firstname" => $allValues[0]["givenname"][0], + "account_lastname" => $allValues[0]["sn"][0], "account_status" => $this->db->f("account_status") ); } @@ -142,8 +142,7 @@ ); } } - - + return $accounts; }