From: Gunnar Wrobel
Date: Sun, 7 Jun 2009 14:57:46 +0000 (+0200) Subject: Fix the comparison of two arrays for changes. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=839a9441cf1ba5a86c849327c180fd236b67a5b5;p=horde.git Fix the comparison of two arrays for changes. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object.php index 0eb96c01e..162e9ce32 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object.php @@ -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) {