mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
meh
git-svn-id: file:///svn/phpbb/trunk@6828 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
595bed3354
commit
1c32dcaeb1
@ -1935,10 +1935,7 @@ function split_sql_file($sql, $delimiter)
|
|||||||
$sql = str_replace("\r" , '', $sql);
|
$sql = str_replace("\r" , '', $sql);
|
||||||
$data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql);
|
$data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql);
|
||||||
|
|
||||||
foreach ($data as $key => $value)
|
$data = array_map('trim', $data);
|
||||||
{
|
|
||||||
$data[$key] = trim($value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// The empty case
|
// The empty case
|
||||||
$end_data = end($data);
|
$end_data = end($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user