aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-05-28 03:44:18 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-05-28 03:44:18 +0000
commit77deaf754b2f23fae66e5d5935211baaba290ade (patch)
tree7bccd25039aabf0bc86b01bcfeeeb797850b4aed /phpBB/includes/functions_admin.php
parentce4445f74a28eaee02c8d90c1a04a759cf88a9c3 (diff)
downloadforums-77deaf754b2f23fae66e5d5935211baaba290ade.tar
forums-77deaf754b2f23fae66e5d5935211baaba290ade.tar.gz
forums-77deaf754b2f23fae66e5d5935211baaba290ade.tar.bz2
forums-77deaf754b2f23fae66e5d5935211baaba290ade.tar.xz
forums-77deaf754b2f23fae66e5d5935211baaba290ade.zip
meh, old versions of MySQL are not cool...
git-svn-id: file:///svn/phpbb/trunk@5974 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php4
1 files changed, 2 insertions, 2 deletions
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)]);
}