Skip to content
Browse files

Indicate NULL values in XML export (thanks to Karel Seidl)

  • Loading branch information...
1 parent 2a97e02 commit 7674576dcb538cd61ce396a90f78144ad8c914cf @vrana committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/dump-xml.php
View
2 plugins/dump-xml.php
@@ -37,7 +37,7 @@ function dumpData($table, $style, $query) {
while ($row = $result->fetch_assoc()) {
echo "\t<table name='" . h($table) . "'>\n";
foreach ($row as $key => $val) {
- echo "\t\t<column name='" . h($key) . "'>" . h($val) . "</column>\n";
+ echo "\t\t<column name='" . h($key) . "'" . (isset($val) ? "" : " null='null'") . ">" . h($val) . "</column>\n";
}
echo "\t</table>\n";
}

0 comments on commit 7674576

Please sign in to comment.
Something went wrong with that request. Please try again.