dont throw undefined index errors for storages that have no owner set

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/18107/head
Robin Appelman 5 years ago
parent 20ec763337
commit f2848fc17c
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB

@ -275,8 +275,8 @@ class ViewController extends Controller {
$params = [];
$params['usedSpacePercent'] = (int) $storageInfo['relative'];
$params['owner'] = $storageInfo['owner'];
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'];
$params['owner'] = $storageInfo['owner'] ?? '';
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'] ?? '';
$params['isPublic'] = false;
$params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes');
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');

Loading…
Cancel
Save