Fix second check for quota size (#24989)

This commit is contained in:
Joas Schilling 2016-06-06 13:47:53 +02:00 committed by Thomas Müller
parent fb5fb6a9b5
commit 7d31ae9909
1 changed files with 1 additions and 1 deletions

View File

@ -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 {