Skip to content
Snippets Groups Projects
Commit 8f10c957 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix quota wrapper reporting negative free_space, breaking user interface

return 0 instead
parent 88cc2ccb
Branches
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class Quota extends Wrapper {
return \OC\Files\SPACE_NOT_COMPUTED;
} else {
$free = $this->storage->free_space($path);
return min($free, ($this->quota - $used));
return min($free, (max($this->quota - $used, 0)));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment