Fix the comparison of two arrays for changes.
authorGunnar Wrobel <p@rdus.de>
Sun, 7 Jun 2009 14:57:46 +0000 (16:57 +0200)
committerGunnar Wrobel <p@rdus.de>
Sun, 7 Jun 2009 14:57:46 +0000 (16:57 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server/Object.php

index 0eb96c0..162e9ce 100644 (file)
@@ -932,8 +932,8 @@ class Horde_Kolab_Server_Object
         }
         if (count($a1) != count($a2)) {
             $intersection = array_intersect($a1, $a2);
-            return array_merge(array_diff($a1, $intersection),
-                               array_diff($a2, $intersection));
+            return array_merge(array_diff_assoc($a1, $intersection),
+                               array_diff_assoc($a2, $intersection));
         }
         $ar = array();
         foreach ($a2 as $k => $v) {