diff options
author | Simon L <szaimen@e.mail.de> | 2022-11-21 18:39:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 18:39:49 +0100 |
commit | c56fcca872dae5f0958470d93086d48b790be962 (patch) | |
tree | f797c244ebce5c51b03c3cf56ce620ac54639128 /lib | |
parent | 284ba2449caae61f5c3f5c7705c3db7b585587fe (diff) | |
parent | f66226d18efa10f5ffe0d221c8063e0409aa4048 (diff) | |
download | nextcloud-server-c56fcca872dae5f0958470d93086d48b790be962.tar.gz nextcloud-server-c56fcca872dae5f0958470d93086d48b790be962.zip |
Merge pull request #35250 from nextcloud/bugfix/noid/quota-zero
[stable24] Properly compare quota against both float/int values
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Quota.php | 4 |
1 files 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; } |