summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/update.php b/update.php
index 1a5233b..174970e 100755
--- a/update.php
+++ b/update.php
@@ -28,6 +28,10 @@ $proc2->importStyleSheet($process);
$step1 = $proc1->transformToDoc($xml);
$step2 = $proc2->transformToXML($step1);
+/*
+ * LOAD XML has bugs (NULL columns) when there are empty, self closing tags like
+ * <title/> Replace those with <title></title>
+ */
$step3 = preg_replace('#<([^>]*)/>#', '<\1></\1>', $step2);
file_put_contents($output, $step3);