From 150bd59c82f2dca8b65652559d920f14ad53dfcc Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 21 Nov 2024 22:46:31 +0700 Subject: [PATCH] [ticket/17436] Fix phpBB 2.0 converter PHP fatal error PHPBB-17436 --- phpBB/install/convertors/functions_phpbb20.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php index b89c086533..85a98ee739 100644 --- a/phpBB/install/convertors/functions_phpbb20.php +++ b/phpBB/install/convertors/functions_phpbb20.php @@ -1418,9 +1418,9 @@ function phpbb_attachment_extension_group_name() $result = $db->sql_query($sql); $extension_groups_updated = array(); - while ($lang_dir = $db->sql_fetchfield('lang_dir')) + while ($row = $db->sql_fetchrow($result)) { - $lang_dir = basename($lang_dir); + $lang_dir = basename($row['lang_dir']); $lang_file = $phpbb_root_path . 'language/' . $lang_dir . '/acp/attachments.' . $phpEx; if (!file_exists($lang_file))