From: Jan Schneider Date: Mon, 20 Sep 2010 16:58:40 +0000 (+0200) Subject: Use getValue() (Bug #9196). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7da534a7cba9a4bc04d5177ef7ec91844822a284;p=horde.git Use getValue() (Bug #9196). --- 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) {}