aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-11-25 15:17:15 +0100
committerRobin Appelman <robin@icewind.nl>2019-11-25 15:17:15 +0100
commitf2848fc17c98c15cfd90c31eed32ef741af83efb (patch)
tree5dd713dfb1acec3193bd20a48c3f6eb8e5874acd /apps/files
parent20ec763337428f3a0e7c9e34e0246c1f5fb3a838 (diff)
downloadnextcloud-server-f2848fc17c98c15cfd90c31eed32ef741af83efb.tar.gz
nextcloud-server-f2848fc17c98c15cfd90c31eed32ef741af83efb.zip
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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 17caf06b480..9103e2d0433 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -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');