Fix trashbin handling of unknown/unlimited free space
This commit is contained in:
parent
d749b9a5ac
commit
2e8232e803
|
@ -581,8 +581,9 @@ class Trashbin {
|
|||
if ($quota === null || $quota === 'none') {
|
||||
$quota = \OC\Files\Filesystem::free_space('/');
|
||||
$softQuota = false;
|
||||
if ($quota === \OCP\Files\FileInfo::SPACE_UNKNOWN) {
|
||||
$quota = 0;
|
||||
// inf or unknown free space
|
||||
if ($quota < 0) {
|
||||
$quota = PHP_INT_MAX;
|
||||
}
|
||||
} else {
|
||||
$quota = \OCP\Util::computerFileSize($quota);
|
||||
|
|
Loading…
Reference in New Issue