summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-01 12:05:18 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-01 12:05:18 +0100
commit4704e719edcdb418624e93ca75592ff0cd39fa13 (patch)
treee20a8251b39d8afb018fa52400dbafb09a599b26 /apps/files_trashbin
parentf6967a974f430a60cb3e3ccdf5b27c46eb27a200 (diff)
downloadnextcloud-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.php2
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 {