]> source.dussan.org Git - nextcloud-server.git/commitdiff
Properly compare quota against both float/int values 35250/head
authorJulius Härtl <jus@bitgrid.net>
Fri, 18 Nov 2022 13:12:43 +0000 (14:12 +0100)
committerJulius Härtl <jus@bitgrid.net>
Fri, 18 Nov 2022 13:12:43 +0000 (14:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Files/Storage/Wrapper/Quota.php

index 4cd0a5e0b4a9cec37137b159698172230bd05b9c..154c448999c6a10c4b1d09201c61bfb28fbf4939 100644 (file)
@@ -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;
                }