mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge pull request #35371 from nextcloud/backport/35250/stable23
[stable23] Properly compare quota against both float/int values
This commit is contained in:
commit
6fc0e39c5f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue