Skip to content

Commit f957ec0

Browse files
icewind1991Backportbot
authored andcommitted
dont throw undefined index errors for storages that have no owner set
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent f0db9bc commit f957ec0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files/lib/Controller/ViewController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
274274

275275
$params = [];
276276
$params['usedSpacePercent'] = (int) $storageInfo['relative'];
277-
$params['owner'] = $storageInfo['owner'];
278-
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'];
277+
$params['owner'] = $storageInfo['owner'] ?? '';
278+
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'] ?? '';
279279
$params['isPublic'] = false;
280280
$params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes');
281281
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');

0 commit comments

Comments
 (0)