summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-07 00:47:30 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-07 00:47:30 +1000
commit04a13e8f7707af44bea678e40df2d37205b9a64f (patch)
treebbfe8bf7b898959549c515ccbe169feff360252c /install.php
parent667b77dcbc715774d9ee758c99873a789e1358f0 (diff)
fixed database install
Diffstat (limited to 'install.php')
-rw-r--r--install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index fababd70..fc25999d 100644
--- a/install.php
+++ b/install.php
@@ -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) {