From: Gunnar Wrobel Date: Mon, 6 Apr 2009 06:10:29 +0000 (+0200) Subject: Correct the basic calls for handling object ids and identifying the object types. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=588df221359adebcd180233f92f33241eb3ac1b8;p=horde.git Correct the basic calls for handling object ids and identifying the object types. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/Ldap.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/Ldap.php index fb25297a7..04b7b42cd 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Ldap.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Ldap.php @@ -504,8 +504,11 @@ class Horde_Kolab_Server_Ldap extends Horde_Kolab_Server return $oc; } catch (Horde_Kolab_Server_Exception $e) { } + if ($oc == 'top') { + return 'Horde_Kolab_Server_Object'; + } } - throw new Horde_Kolab_Server_Exception(sprintf(_("Unkown Kolab object type for UID %s."), + throw new Horde_Kolab_Server_Exception(sprintf(_("Unkown object type for UID %s."), $uid)); } @@ -524,8 +527,7 @@ class Horde_Kolab_Server_Ldap extends Horde_Kolab_Server { switch ($type) { default: - Horde_Kolab_Server_Object::loadClass($type); - call_user_func(array($type, 'generateServerUid'), $id, $info); + return sprintf('%s,%s', $id, $this->getBaseUid()); } } }