Commit 48b314cd authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #212 from differentrain/nouveau

缓解#211中的问题
parents 366fc4b8 1c8f7087
This diff is collapsed.
......@@ -1220,7 +1220,10 @@ function runquery($sql) {
foreach(explode(";\n", trim($sql)) as $query) {
$queries = explode("\n", trim($query));
foreach($queries as $query) {
$ret[$num] .= $query[0] == '#' || $query[0].$query[1] == '--' ? '' : $query;
if (count($ret) == $num) {
$ret[] = '';
}
$ret[$num] .= strlen($query)<2 || $query[0] == '#' || $query[0].$query[1] == '--' ? '' : $query;
}
$num++;
}
......@@ -1312,4 +1315,4 @@ function setconfig($string) {
return $string;
}
?>
\ No newline at end of file
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment