summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-06-06 13:47:53 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-06-06 13:47:53 +0200
commit7d31ae9909d5edb2fab42ff06f725682d4e9c430 (patch)
tree349710ccf51dcf87c04c6f8eb6d67093b4bbffed
parentfb5fb6a9b5a6914c72b63a2f7f3f9b92a1a6ace6 (diff)
downloadnextcloud-server-7d31ae9909d5edb2fab42ff06f725682d4e9c430.tar.gz
nextcloud-server-7d31ae9909d5edb2fab42ff06f725682d4e9c430.zip
Fix second check for quota size (#24989)
-rw-r--r--lib/private/legacy/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php
index 25cfff3036b..f107d47faf7 100644
--- a/lib/private/legacy/helper.php
+++ b/lib/private/legacy/helper.php
@@ -469,7 +469,7 @@ class OC_Helper {
*/
public static function freeSpace($dir) {
$freeSpace = \OC\Files\Filesystem::free_space($dir);
- if ($freeSpace !== \OCP\Files\FileInfo::SPACE_UNKNOWN) {
+ if ($freeSpace < \OCP\Files\FileInfo::SPACE_UNLIMITED) {
$freeSpace = max($freeSpace, 0);
return $freeSpace;
} else {