actually return the quote when getting global storage info

prevents 'undefined' index errors when 'include external storage in quota' is enabled

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2019-11-06 10:18:47 +01:00 committed by Backportbot
parent 0e57eabfa0
commit 555900a0d2
1 changed files with 7 additions and 2 deletions

View File

@ -585,8 +585,13 @@ class OC_Helper {
$relative = 0;
}
return array('free' => $free, 'used' => $used, 'total' => $total, 'relative' => $relative);
return [
'free' => $free,
'used' => $used,
'total' => $total,
'relative' => $relative,
'quota' => $quota
];
}
/**