From 7da534a7cba9a4bc04d5177ef7ec91844822a284 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 20 Sep 2010 18:58:40 +0200 Subject: [PATCH] Use getValue() (Bug #9196). --- framework/Auth/lib/Horde/Auth/Ldap.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/Auth/lib/Horde/Auth/Ldap.php b/framework/Auth/lib/Horde/Auth/Ldap.php index 96b206606..f9af827a4 100644 --- a/framework/Auth/lib/Horde/Auth/Ldap.php +++ b/framework/Auth/lib/Horde/Auth/Ldap.php @@ -390,11 +390,10 @@ class Horde_Auth_Ldap extends Horde_Auth_Base $search = $this->_ldap->search( $this->_params['basedn'], Horde_Ldap_Filter::build(array('filter' => $this->_params['filter'])), - $params) - ->asArray(); + $params); $uid = Horde_String::lower($this->_params['uid']); foreach ($search as $val) { - $userlist[] = $val[$uid][0]; + $userlist[] = $val->getValue($uid, 'single'); } } catch (Horde_Ldap_Exception $e) {} -- 2.11.0