From f66226d18efa10f5ffe0d221c8063e0409aa4048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 18 Nov 2022 14:12:43 +0100 Subject: [PATCH] Properly compare quota against both float/int values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Files/Storage/Wrapper/Quota.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }