diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-01 12:05:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-01 12:05:18 +0100 |
commit | 4704e719edcdb418624e93ca75592ff0cd39fa13 (patch) | |
tree | e20a8251b39d8afb018fa52400dbafb09a599b26 /apps/files_trashbin | |
parent | f6967a974f430a60cb3e3ccdf5b27c46eb27a200 (diff) | |
download | nextcloud-server-4704e719edcdb418624e93ca75592ff0cd39fa13.tar.gz nextcloud-server-4704e719edcdb418624e93ca75592ff0cd39fa13.zip |
Only fetch size of this storage without mount points - ref #14412
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/Trashbin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index 96c6a4c0af7..1d0d5379905 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -684,7 +684,7 @@ class Trashbin { if(is_null($userFolder)) { return 0; } - $free = $quota - $userFolder->getSize(); // remaining free space for user + $free = $quota - $userFolder->getSize(false); // remaining free space for user if ($free > 0) { $availableSpace = ($free * self::DEFAULTMAXSIZE / 100) - $trashbinSize; // how much space can be used for versions } else { |