mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
DB stuff, nothing cool at all unless you use Oracle.
git-svn-id: file:///svn/phpbb/trunk@6006 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1792,7 +1792,8 @@ function remove_remarks(&$sql)
|
||||
function split_sql_file($sql, $delimiter)
|
||||
{
|
||||
$sql = str_replace("\r" , '', $sql);
|
||||
$data = preg_split('/' . $delimiter . '$/m', $sql);
|
||||
$data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql);
|
||||
|
||||
foreach ($data as $key => $value)
|
||||
{
|
||||
$data[$key] = trim($value);
|
||||
|
Reference in New Issue
Block a user