Code

Tuned debugging and removed objectclasses
[gosa.git] / include / class_ldap.inc
index d97e1e01d0c6a57ead142fb72a64bcc8a2d300d8..a87a2e75f7dda75c0e365c32198011e5f26abe1b 100644 (file)
@@ -520,6 +520,9 @@ class LDAP{
 
   function modify($attrs)
   {
+    if(count($attrs) == 0){
+      return (0);
+    }
     if($this->hascon){
       if ($this->reconnect) $this->connect();
       $r = @ldap_modify($this->cid, $this->fix($this->basedn), $attrs);