1
0
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:
David M
2006-05-28 03:44:18 +00:00
parent ce4445f74a
commit 77deaf754b
3 changed files with 79 additions and 67 deletions

View File

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