diff options
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 4 |
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)]); } |