Fix a typo.
authorGunnar Wrobel <p@rdus.de>
Mon, 6 Apr 2009 14:59:00 +0000 (16:59 +0200)
committerGunnar Wrobel <p@rdus.de>
Mon, 6 Apr 2009 14:59:00 +0000 (16:59 +0200)
Return the attribute information.

framework/Kolab_Server/lib/Horde/Kolab/Server/Ldap.php

index e8332c9..f4d8ce2 100644 (file)
@@ -327,7 +327,7 @@ class Horde_Kolab_Server_Ldap extends Horde_Kolab_Server
     {
         if (!empty($this->_config['schema_support'])) {
             $schema = $this->_getSchema();
-            $info = $schema->get('objectclass', $object_class);
+            $info = $schema->get('objectclass', $objectclass);
             if ($info instanceOf PEAR_Error) {
                 throw new Horde_Kolab_Server_Exception($info->getMessage());
             }
@@ -353,6 +353,7 @@ class Horde_Kolab_Server_Ldap extends Horde_Kolab_Server
             if ($info instanceOf PEAR_Error) {
                 throw new Horde_Kolab_Server_Exception($info->getMessage());
             }
+            return $info;
         }
         return parent::getAttributeSchema($attribute);
     }