summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-12 16:21:47 +0100
committerJoas Schilling <coding@schilljs.com>2021-02-12 16:21:47 +0100
commit83755b7b02bc6f1a76f46a732b2595c0c5326346 (patch)
tree5f1b38243503027384df153d00131c8b6b72bbcb /core/Controller
parent361f160d0daa4c3baf84c801118c0d85886aa6d9 (diff)
downloadnextcloud-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/Controller')
-rw-r--r--core/Controller/AutoCompleteController.php6
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'] ?? '',
];
}
}