index acbf117411d703c43c4ed1880a5222dd550d1148..26c0a572659f10287d156965b74bdb68579e2095 100644 (file)
}
ksort($ar1);
ksort($ar2);
}
ksort($ar1);
ksort($ar2);
- if(count( array_diff($ar1,$ar2))){
+ if(count( array_diff($ar1,$ar2)) || arr_diff($ar1,$ar2)){
return(true);
}else{
return(false);
return(true);
}else{
return(false);
}
}
+function arr_diff($ar1,$ar2)
+{
+ foreach($ar1 as $ak1 => $av1){
+ if(!isset($ar2[$ak1]) || (!($av1 === $ar2[$ak1]))){
+ return(true);
+ }elseif(is_array($av1)){
+ return(arr_diff($av1,$ar2[$ak1]));
+ }
+ }
+ return(FALSE);
+}
+
+
+
+
/* check which objects must be saved, and save them */
function save_release_changes_now()
{
/* check which objects must be saved, and save them */
function save_release_changes_now()
{