From 1c32dcaeb10292de8fa8de25c8775fbdab25e2c7 Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 1 Jan 2007 19:01:24 +0000 Subject: [PATCH] meh git-svn-id: file:///svn/phpbb/trunk@6828 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 5 +---- 1 file changed, 1 insertion(+), 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);