Browse Source

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

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v18.0.0beta1
Robin Appelman 4 years ago
parent
commit
f2848fc17c
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apps/files/lib/Controller/ViewController.php

+ 2
- 2
apps/files/lib/Controller/ViewController.php View File

@@ -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