mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16705] Fix check_disk_space function
Silent potential warnings PHPBB3-16705
This commit is contained in:
parent
e4fc9bb0b1
commit
2ea22ee387
1 changed files with 1 additions and 1 deletions
|
@ -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'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue