Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7674576dcb538cd61ce396a90f78144ad8c914cf 1 parent 2a97e02
@vrana authored
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";
}
Please sign in to comment.
Something went wrong with that request. Please try again.