mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/15342] free_space() now return false if there is any error
PHPBB3-15342
This commit is contained in:
@@ -43,7 +43,7 @@ class storage
|
||||
protected $factory;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var stringshould be caste
|
||||
*/
|
||||
protected $storage_name;
|
||||
|
||||
@@ -384,7 +384,7 @@ class storage
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
return $number_files;
|
||||
return (int) $number_files;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -392,7 +392,7 @@ class storage
|
||||
*
|
||||
* @throws \phpbb\storage\exception\exception When can't get available space
|
||||
*
|
||||
* @return int Returns available space
|
||||
* @return mixed Returns available space or null when unable to retrieve available space
|
||||
*/
|
||||
public function free_space()
|
||||
{
|
||||
|
Reference in New Issue
Block a user