Code

Fixed Problem with non deleted objectclasses
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Feb 2006 18:14:26 +0000 (18:14 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Feb 2006 18:14:26 +0000 (18:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2694 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc

index 103a6c1fc6a82ebf0d800bb2a3dc0eea6c9c3ab2..5b57ce3d1b0d264df67037e264c7f8d443282979 100644 (file)
@@ -336,23 +336,19 @@ class plugin
 
       /* Remove arrays that do not differ */
       if (is_array($this->attrs[$index]) && isset($this->saved_attributes[$index]) && is_array($this->saved_attributes[$index])){
-        $dst= $this->attrs[$index];
-        $src= $this->saved_attributes[$index];
-        sort($dst);
-        sort($src);
-        if (count(array_diff($src, $dst))==0 ){
+        if (count(array_diff($this->attrs[$index],$this->saved_attributes[$index]))==0 ){
           unset ($this->attrs[$index]);
           continue;
         }
       }
     }
 
-    #######################################################
-    ; if (count($this->attrs)!=0){                        ;
-    ;   echo "--- DEBUG: changes ---<br>"                 ;
-    ;   print_a ($this->attrs)                            ;
-    ; }                                                   ;
-    #######################################################
+    #######################################
+    ; if (count($this->attrs)!=0){        ;
+    ;   echo "--- DEBUG: changes ---<br>" ;
+    ;   print_a ($this->attrs)            ;
+    ; }                                   ;
+    #######################################
   }
 
   /* Check formular input */