Skip to content

Commit 6fc0e39

Browse files
authored
Merge pull request #35371 from nextcloud/backport/35250/stable23
[stable23] Properly compare quota against both float/int values
2 parents 9323ea3 + 48ec347 commit 6fc0e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Files/Storage/Wrapper/Quota.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
227227

228228
public function mkdir($path) {
229229
$free = $this->free_space($path);
230-
if ($this->shouldApplyQuota($path) && $free === 0.0) {
230+
if ($this->shouldApplyQuota($path) && $free == 0) {
231231
return false;
232232
}
233233

@@ -236,7 +236,7 @@ public function mkdir($path) {
236236

237237
public function touch($path, $mtime = null) {
238238
$free = $this->free_space($path);
239-
if ($free === 0.0) {
239+
if ($free == 0) {
240240
return false;
241241
}
242242

0 commit comments

Comments
 (0)