]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont throw undefined index errors for storages that have no owner set 18107/head
authorRobin Appelman <robin@icewind.nl>
Mon, 25 Nov 2019 14:17:15 +0000 (15:17 +0100)
committerRobin Appelman <robin@icewind.nl>
Mon, 25 Nov 2019 14:17:15 +0000 (15:17 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files/lib/Controller/ViewController.php

index 17caf06b480a48c408496080cc4cbec037c6cec0..9103e2d043349e16316beaf5d1da1946fb7928d1 100644 (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');