aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-01-01 19:01:24 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-01-01 19:01:24 +0000
commit1c32dcaeb10292de8fa8de25c8775fbdab25e2c7 (patch)
tree73cfafb684adece8aeb6229b0e8758257a72fe64 /phpBB/includes/functions_admin.php
parent595bed3354c4873a8b4bca35bcd76a3c74ea12ad (diff)
downloadforums-1c32dcaeb10292de8fa8de25c8775fbdab25e2c7.tar
forums-1c32dcaeb10292de8fa8de25c8775fbdab25e2c7.tar.gz
forums-1c32dcaeb10292de8fa8de25c8775fbdab25e2c7.tar.bz2
forums-1c32dcaeb10292de8fa8de25c8775fbdab25e2c7.tar.xz
forums-1c32dcaeb10292de8fa8de25c8775fbdab25e2c7.zip
meh
git-svn-id: file:///svn/phpbb/trunk@6828 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index a94504d3d2..ee2d432818 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -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);