forked from leftypol/leftypol
fixed database install
This commit is contained in:
parent
667b77dcbc
commit
04a13e8f77
2 changed files with 2 additions and 9 deletions
|
@ -309,8 +309,8 @@
|
|||
// This code is probably horrible, but what I'm trying
|
||||
// to do is find all of the SQL queires and put them
|
||||
// in an array.
|
||||
preg_match_all("/((SET|CREATE|INSERT).+)\n\n/msU", $sql, $queries);
|
||||
$queries = $queries[1];
|
||||
preg_match_all("/(^|\n)((SET|CREATE|INSERT).+)\n\n/msU", $sql, $queries);
|
||||
$queries = $queries[2];
|
||||
|
||||
$sql_errors = '';
|
||||
foreach($queries as &$query) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue