1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00
git-svn-id: file:///svn/phpbb/trunk@6828 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-01-01 19:01:24 +00:00
parent 595bed3354
commit 1c32dcaeb1

View File

@ -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);