summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-11-21 18:39:49 +0100
committerGitHub <noreply@github.com>2022-11-21 18:39:49 +0100
commitc56fcca872dae5f0958470d93086d48b790be962 (patch)
treef797c244ebce5c51b03c3cf56ce620ac54639128 /lib
parent284ba2449caae61f5c3f5c7705c3db7b585587fe (diff)
parentf66226d18efa10f5ffe0d221c8063e0409aa4048 (diff)
downloadnextcloud-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.php4
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;
}