Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Properly compare quota against both float/int values
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Nov 23, 2022
commit 48ec3477ee865628942a0841c3251c546ba12233
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/Wrapper/Quota.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t

public function mkdir($path) {
$free = $this->free_space($path);
if ($this->shouldApplyQuota($path) && $free === 0.0) {
if ($this->shouldApplyQuota($path) && $free == 0) {
return false;
}

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

public function touch($path, $mtime = null) {
$free = $this->free_space($path);
if ($free === 0.0) {
if ($free == 0) {
return false;
}

Expand Down