diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-13 14:55:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-13 14:55:55 +0100 |
commit | 5b43afd076aa25474456ee01cd077acebe7b4675 (patch) | |
tree | 1f02640bed5362fb180aa227ccdfa647fcf4ef75 | |
parent | 97f2c59612ccc0a5131d7f1f3cb146d577c83ad6 (diff) | |
parent | 83755b7b02bc6f1a76f46a732b2595c0c5326346 (diff) | |
download | nextcloud-server-5b43afd076aa25474456ee01cd077acebe7b4675.tar.gz nextcloud-server-5b43afd076aa25474456ee01cd077acebe7b4675.zip |
Merge pull request #25612 from nextcloud/bugfix/noid/make-new-result-parts-optional
Make new result parts optional
-rw-r--r-- | core/Controller/AutoCompleteController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/AutoCompleteController.php b/core/Controller/AutoCompleteController.php index 63a95531e82..74f5db485c8 100644 --- a/core/Controller/AutoCompleteController.php +++ b/core/Controller/AutoCompleteController.php @@ -115,10 +115,10 @@ class AutoCompleteController extends Controller { $output[] = [ 'id' => (string) $result['value']['shareWith'], 'label' => $result['label'], - 'icon' => $result['icon'], + 'icon' => $result['icon'] ?? '', 'source' => $type, - 'status' => $result['status'], - 'subline' => $result['subline'] + 'status' => $result['status'] ?? '', + 'subline' => $result['subline'] ?? '', ]; } } |