Skip to content

Commit c56fcca

Browse files
authored
Merge pull request #35250 from nextcloud/bugfix/noid/quota-zero
[stable24] Properly compare quota against both float/int values
2 parents 284ba24 + f66226d commit c56fcca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)