mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 04:20:32 +02:00
[ticket/16705] Fix check_disk_space function
Silent potential warnings PHPBB3-16705
This commit is contained in:
@@ -298,7 +298,7 @@ class upload
|
|||||||
{
|
{
|
||||||
if (function_exists('disk_free_space'))
|
if (function_exists('disk_free_space'))
|
||||||
{
|
{
|
||||||
$free_space = disk_free_space($this->phpbb_root_path);
|
$free_space = @disk_free_space($this->phpbb_root_path);
|
||||||
|
|
||||||
if ($free_space <= $this->file->get('filesize'))
|
if ($free_space <= $this->file->get('filesize'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user