dont throw undefined index errors for storages that have no owner set
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
dfcb53c13d
commit
1671bd4ce0
|
@ -269,8 +269,8 @@ class ViewController extends Controller {
|
||||||
|
|
||||||
$params = [];
|
$params = [];
|
||||||
$params['usedSpacePercent'] = (int) $storageInfo['relative'];
|
$params['usedSpacePercent'] = (int) $storageInfo['relative'];
|
||||||
$params['owner'] = $storageInfo['owner'];
|
$params['owner'] = $storageInfo['owner'] ?? '';
|
||||||
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'];
|
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'] ?? '';
|
||||||
$params['isPublic'] = false;
|
$params['isPublic'] = false;
|
||||||
$params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes');
|
$params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes');
|
||||||
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');
|
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');
|
||||||
|
|
Loading…
Reference in New Issue