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

[ticket/15342] free_space() now return false if there is any error

PHPBB3-15342
This commit is contained in:
Rubén Calvo
2018-07-01 18:46:48 +02:00
parent 6d2aae5853
commit c039fcba18
3 changed files with 5 additions and 12 deletions

View File

@@ -432,11 +432,6 @@ class local implements adapter_interface, stream_interface
{
$free_space = @disk_free_space($this->root_path);
if ($free_space === false)
{
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
}
return (int) $free_space;
return $free_space;
}
}