diff options
author | Robin Appelman <robin@icewind.nl> | 2019-11-25 17:17:15 +0300 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2020-01-16 17:50:04 +0300 |
commit | 1671bd4ce085ffae17a243bda350827488e51b10 (patch) | |
tree | bee0d639ea459d9ce917d62f298cacc1919d4fee /apps/files | |
parent | dfcb53c13d462a5e3b6ad734dda0c25340b342ae (diff) |
dont throw undefined index errors for storages that have no owner set
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index cf1b4374da4..0dba35e330a 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -269,8 +269,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'); |