From ea5028cf2aaf217df61056d1068faa4fa489b466 Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Sat, 28 Nov 2020 05:38:38 +0100 Subject: [PATCH] [ticket/16641] Fix config.php validation in ACP - PHP 8 PHPBB3-16641 --- phpBB/includes/acp/acp_main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index a222bfa1cc..6a450d2765 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -682,7 +682,7 @@ class acp_main // We define the variable so we avoid redundancies $config_ref = $phpbb_root_path . 'config.' . $phpEx; - if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref) && $phpbb_filesystem->is_writable($config_ref)) + if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref)) { // World-Writable? (000x) $template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($config_ref) & 0x0002));