1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-20 07:42:09 +02:00

[ticket/16641] Fix config.php validation in ACP - PHP 8

PHPBB3-16641
This commit is contained in:
3D-I 2020-11-26 23:58:34 +01:00
parent f711133580
commit 146d72468f

View File

@ -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))
)
{