mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
Merge pull request #6141 from 3D-I/ticket/16705
[ticket/16705] Fix check_disk_space function - PHP 8
This commit is contained in:
@@ -296,8 +296,10 @@ class upload
|
||||
*/
|
||||
protected function check_disk_space()
|
||||
{
|
||||
if ($free_space = @disk_free_space($this->phpbb_root_path . $this->config['upload_path']))
|
||||
if (function_exists('disk_free_space'))
|
||||
{
|
||||
$free_space = @disk_free_space($this->phpbb_root_path);
|
||||
|
||||
if ($free_space <= $this->file->get('filesize'))
|
||||
{
|
||||
if ($this->auth->acl_get('a_'))
|
||||
|
Reference in New Issue
Block a user