Commit 45771b3a authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixes #7406: dbinit might contain multiple sql statements now.

parent 2cc07276
Pipeline #1086 passed with stage
in 2 minutes and 4 seconds
......@@ -89,7 +89,13 @@ class Database {
// DB Init
if ($dbInit !== false && $dbInit != '') {
$this->sql($dbInit);
$arr = explode(';', $dbInit);
foreach ($arr AS $sql) {
$sql = trim($sql);
if ('' != $sql) {
$this->sql($sql);
}
}
}
}
......
Supports Markdown
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