summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae0b560)
raw | patch | inline | side by side (parent: ae0b560)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Jun 2007 09:18:42 +0000 (09:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Jun 2007 09:18:42 +0000 (09:18 +0000) |
Changes wasn't saved sometimes.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6528 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6528 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions_FAI.inc | patch | blob | history |
index acbf117411d703c43c4ed1880a5222dd550d1148..26c0a572659f10287d156965b74bdb68579e2095 100644 (file)
}
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);
}
+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()
{