summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-27 19:52:54 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-27 19:52:54 +0000
commit7842bc18a5ed7c09d0a86c4d40edc14aba57d31d (patch)
treec353ed3f11dfa6f642e8c5766f4a3aec40ab2add
parentf1b6bff8c0f0e67c83c660cee87e96d8e7f80437 (diff)
abfangen von lereen arrays
git-svn-id: svn://svn.cccv.de/engel-system@175 29ba0400-6e00-0410-a75a-ca02368028f8
-rw-r--r--www-ssl/inc/funktion_db.php17
1 files changed, 13 insertions, 4 deletions
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 .= "</tr>\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 .= "<tr>\n\t<td>$key</td>\n\t<td>$value</td>\n\t<td>".$Data2[$key]."</rd>\n</tr>";
+ }
+ }
+ else
+ foreach($Data1 as $key => $value)
{
$Gefunden=TRUE;
- $Diff .= "<tr>\n\t<td>$key</td>\n\t<td>$value</td>\n\t<td>".$Data2[$key]."</rd>\n</tr>";
+ $Diff .= "<tr>\n\t<td>$key</td>\n\t<td>$value</td>\n\t<td></rd>\n</tr>";
}
}
$Diff .= "</table>\n";