diff options
author | Robin Appelman <robin@icewind.nl> | 2019-11-06 10:18:47 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-11-06 10:18:47 +0100 |
commit | 5df98d726534062ef00d7450bfae4984fb4267fc (patch) | |
tree | 6712359b83dc798828ab73c9aa558509fe694ec1 /lib | |
parent | 5c0ad24a6830189a36b5538ee02738a57e067637 (diff) | |
download | nextcloud-server-5df98d726534062ef00d7450bfae4984fb4267fc.tar.gz nextcloud-server-5df98d726534062ef00d7450bfae4984fb4267fc.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/helper.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 6faba3ebee2..3c4915ae748 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -586,8 +586,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 + ]; } /** |