[Pkg-owncloud-commits] [owncloud] 40/129: Fix trashbin handling of unknown/unlimited free space
David Prévot
taffit at moszumanska.debian.org
Thu Nov 5 01:04:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit cf84a1128da8d70b9c0918233b69a59c9076dcf1
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Oct 15 15:46:26 2015 +0200
Fix trashbin handling of unknown/unlimited free space
---
apps/files_trashbin/lib/trashbin.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index ef015c3..839a47a 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list