diff --git a/www-ssl/inc/funktion_db.php b/www-ssl/inc/funktion_db.php index 8470d5d6..cbfb198f 100644 --- a/www-ssl/inc/funktion_db.php +++ b/www-ssl/inc/funktion_db.php @@ -52,12 +52,21 @@ if( !function_exists("db_query")) $Diff .= "\n"; foreach($Daten1 as $DataKey => $Data1) { - $Data2 = $Daten2[$DataKey]; - foreach($Data1 as $key => $value) - if( $value != $Data2[$key]) + if( isset( $Daten2[$DataKey])) + { + $Data2 = $Daten2[$DataKey]; + foreach($Data1 as $key => $value) + if( $value != $Data2[$key]) + { + $Gefunden=TRUE; + $Diff .= "\n\t$key\n\t$value\n\t".$Data2[$key]."\n"; + } + } + else + foreach($Data1 as $key => $value) { $Gefunden=TRUE; - $Diff .= "\n\t$key\n\t$value\n\t".$Data2[$key]."\n"; + $Diff .= "\n\t$key\n\t$value\n\t\n"; } } $Diff .= "\n";