mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Properly compare quota against both float/int values
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
ff9569256e
commit
f66226d18e
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