From: Julius Härtl Date: Fri, 18 Nov 2022 13:12:43 +0000 (+0100) Subject: Properly compare quota against both float/int values X-Git-Tag: v24.0.8rc1~21^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f66226d18efa10f5ffe0d221c8063e0409aa4048;p=nextcloud-server.git Properly compare quota against both float/int values Signed-off-by: Julius Härtl --- diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php index 4cd0a5e0b4a..154c448999c 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -227,7 +227,7 @@ class Quota extends Wrapper { public function mkdir($path) { $free = $this->free_space($path); - if ($this->shouldApplyQuota($path) && $free === 0.0) { + if ($this->shouldApplyQuota($path) && $free == 0) { return false; } @@ -236,7 +236,7 @@ class Quota extends Wrapper { public function touch($path, $mtime = null) { $free = $this->free_space($path); - if ($free === 0.0) { + if ($free == 0) { return false; }