From 77deaf754b2f23fae66e5d5935211baaba290ade Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 28 May 2006 03:44:18 +0000 Subject: meh, old versions of MySQL are not cool... git-svn-id: file:///svn/phpbb/trunk@5974 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions_admin.php') diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 977bd3fc1a..a82ee15833 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -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)]); } -- cgit v1.2.1