diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index a1ce3a00c9..368e7c5996 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -681,7 +681,7 @@ class acp_main $config_ref = $phpbb_root_path . 'config.' . $phpEx; - if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($phpbb_root_path . 'config.' . $phpEx) + if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref) && (function_exists('is_writable') ? is_writable($config_ref) : $phpbb_filesystem->is_writable($config_ref)) ) {