diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-11-18 14:12:43 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-11-18 14:12:43 +0100 |
commit | f66226d18efa10f5ffe0d221c8063e0409aa4048 (patch) | |
tree | c7217c2234d18ae22e59a9fedd5fa28e2f9729c1 /lib/private | |
parent | ff9569256e8d3a4d5c98585b2bc4c6e38a1ca566 (diff) | |
download | nextcloud-server-f66226d18efa10f5ffe0d221c8063e0409aa4048.tar.gz nextcloud-server-f66226d18efa10f5ffe0d221c8063e0409aa4048.zip |
Properly compare quota against both float/int values
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private')
-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; } |