Merge pull request #35371 from nextcloud/backport/35250/stable23

[stable23] Properly compare quota against both float/int values
This commit is contained in:
Julius Härtl 2022-11-24 08:23:54 +01:00 committed by GitHub
commit 6fc0e39c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;
}