diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-05-28 16:00:53 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-05-28 16:00:53 +0000 |
commit | d794557825dd9f28acf241ccf77444ee42dfa049 (patch) | |
tree | 4b2e5aa6b82e10b04f55af7aee1094ff21ed7ab2 /phpBB/includes/functions_admin.php | |
parent | d5b6b9cf852c16ed627fe38a6b34e39bfca73a18 (diff) | |
download | forums-d794557825dd9f28acf241ccf77444ee42dfa049.tar forums-d794557825dd9f28acf241ccf77444ee42dfa049.tar.gz forums-d794557825dd9f28acf241ccf77444ee42dfa049.tar.bz2 forums-d794557825dd9f28acf241ccf77444ee42dfa049.tar.xz forums-d794557825dd9f28acf241ccf77444ee42dfa049.zip |
- fix nasty error in functions_admin generating a fatal error on inclusion
- adjusted error reporting level to get those errors instead of just the script halting.
git-svn-id: file:///svn/phpbb/trunk@5978 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index a82ee15833..ea3c41f08b 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1797,8 +1797,11 @@ function split_sql_file($sql, $delimiter) { $data[$key] = trim($value); } + // The empty case - if (empty(end($data))) + $end_data = end($data); + + if (empty($end_data)) { unset($data[key($data)]); } |