From 48ec3477ee865628942a0841c3251c546ba12233 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 4cd0a5e0b4a9c..154c448999c6a 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -227,7 +227,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t 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 @@ public function mkdir($path) { public function touch($path, $mtime = null) { $free = $this->free_space($path); - if ($free === 0.0) { + if ($free == 0) { return false; }