1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

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

PHPBB3-16641
This commit is contained in:
3D-I
2020-11-27 20:50:06 +01:00
parent 146d72468f
commit 4e8b104543
2 changed files with 5 additions and 9 deletions

View File

@@ -613,13 +613,10 @@ class filesystem implements filesystem_interface
}
else
{
$handle = @fopen($file, 'c');
$handle = new \SplFileInfo($file);
if (is_resource($handle))
{
fclose($handle);
return true;
}
// Returns TRUE if writable, FALSE otherwise
return $handle->isWritable();
}
}
else