From 7d31ae9909d5edb2fab42ff06f725682d4e9c430 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 Jun 2016 13:47:53 +0200 Subject: [PATCH] Fix second check for quota size (#24989) --- lib/private/legacy/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 25cfff3036..f107d47faf 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 {