diff options
author | Joas Schilling <coding@schilljs.com> | 2021-02-12 16:21:47 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-02-12 16:21:47 +0100 |
commit | 83755b7b02bc6f1a76f46a732b2595c0c5326346 (patch) | |
tree | 5f1b38243503027384df153d00131c8b6b72bbcb /core | |
parent | 361f160d0daa4c3baf84c801118c0d85886aa6d9 (diff) | |
download | nextcloud-server-83755b7b02bc6f1a76f46a732b2595c0c5326346.tar.gz nextcloud-server-83755b7b02bc6f1a76f46a732b2595c0c5326346.zip |
Make new result parts optional
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-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'] ?? '', ]; } } |