mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Fix second check for quota size (#24989)
This commit is contained in:
parent
fb5fb6a9b5
commit
7d31ae9909
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue