Merge pull request #25612 from nextcloud/bugfix/noid/make-new-result-parts-optional

Make new result parts optional
This commit is contained in:
Roeland Jago Douma 2021-02-13 14:55:55 +01:00 committed by GitHub
commit 5b43afd076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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'] ?? '',
];
}
}