Simplify
authorJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 16:58:11 +0000 (18:58 +0200)
committerJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 16:58:11 +0000 (18:58 +0200)
framework/Ldap/lib/Horde/Ldap/Entry.php

index 0dcca6b..dc7eeeb 100644 (file)
@@ -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;
     }
 
     /**