mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
meh, old versions of MySQL are not cool...
git-svn-id: file:///svn/phpbb/trunk@5974 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1795,10 +1795,10 @@ function split_sql_file($sql, $delimiter)
|
||||
$data = preg_split('/' . $delimiter . '$/m', $sql);
|
||||
foreach ($data as $key => $value)
|
||||
{
|
||||
$data[$key] = trim($value) . ';';
|
||||
$data[$key] = trim($value);
|
||||
}
|
||||
// The empty case
|
||||
if (end($data) == ';')
|
||||
if (empty(end($data)))
|
||||
{
|
||||
unset($data[key($data)]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user