mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +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);
|
||||
$data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql);
|
||||
|
||||
foreach ($data as $key => $value)
|
||||
{
|
||||
$data[$key] = trim($value);
|
||||
}
|
||||
$data = array_map('trim', $data);
|
||||
|
||||
// The empty case
|
||||
$end_data = end($data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user