Merge pull request #23982 from nextcloud/fix/quota-storage-getsize
Make sure root storage is valid before checking its size
This commit is contained in:
commit
28464f71a2
|
@ -71,7 +71,10 @@ class Quota extends Wrapper {
|
|||
protected function getSize($path, $storage = null) {
|
||||
if ($this->config->getValue('quota_include_external_storage', false)) {
|
||||
$rootInfo = Filesystem::getFileInfo('', 'ext');
|
||||
if ($rootInfo) {
|
||||
return $rootInfo->getSize(true);
|
||||
}
|
||||
return \OCP\Files\FileInfo::SPACE_NOT_COMPUTED;
|
||||
} else {
|
||||
if (is_null($storage)) {
|
||||
$cache = $this->getCache();
|
||||
|
|
Loading…
Reference in New Issue