Merge pull request #18107 from nextcloud/undefined-index-owner
dont throw undefined index errors for storages that have no owner set
This commit is contained in:
commit
a9fb567621
|
@ -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…
Reference in New Issue