diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2016-06-06 13:47:53 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-06-06 13:47:53 +0200 |
commit | 7d31ae9909d5edb2fab42ff06f725682d4e9c430 (patch) | |
tree | 349710ccf51dcf87c04c6f8eb6d67093b4bbffed | |
parent | fb5fb6a9b5a6914c72b63a2f7f3f9b92a1a6ace6 (diff) | |
download | nextcloud-server-7d31ae9909d5edb2fab42ff06f725682d4e9c430.tar.gz nextcloud-server-7d31ae9909d5edb2fab42ff06f725682d4e9c430.zip |
Fix second check for quota size (#24989)
-rw-r--r-- | lib/private/legacy/helper.php | 2 |
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 { |