From: Jan Schneider Date: Mon, 20 Sep 2010 16:58:11 +0000 (+0200) Subject: Simplify X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6a08c08d042b0ed7c3d7dd4af29fe1d9644afe85;p=horde.git Simplify --- diff --git a/framework/Ldap/lib/Horde/Ldap/Entry.php b/framework/Ldap/lib/Horde/Ldap/Entry.php index 0dcca6bc3..dc7eeeb74 100644 --- a/framework/Ldap/lib/Horde/Ldap/Entry.php +++ b/framework/Ldap/lib/Horde/Ldap/Entry.php @@ -729,10 +729,7 @@ class Horde_Ldap_Entry protected function _getAttrName($attr) { $name = Horde_String::lower($attr); - if (array_key_exists($name, $this->_map)) { - $attr = $this->_map[$name]; - } - return $attr; + return isset($this->_map[$name]) ? $this->_map[$name] : $attr; } /**