diff --git a/wizzardRedux/admin/import.php b/wizzardRedux/admin/import.php index aa018ae..f94e666 100644 --- a/wizzardRedux/admin/import.php +++ b/wizzardRedux/admin/import.php @@ -121,7 +121,7 @@ function import_dat($filename, $link) $machinename = ""; $description = ""; $gameid = 0; - $query = ""; + $comment = false; echo "

Roms Added:

@@ -154,8 +154,19 @@ function import_dat($filename, $link) $format = "unknown"; } } + + // If there's an XML-style comment, stop the presses and skip until it's over + elseif (strpos($line, "-->") !== false) + { + $comment = false; + } + elseif (strpos($line, "