Merge pull request #25624 from nextcloud/backport/25612/stable21

[stable21] Make new result parts optional
This commit is contained in:
Roeland Jago Douma 2021-02-15 11:44:14 +01:00 committed by GitHub
commit efa1ef5d69
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[] = [ $output[] = [
'id' => (string) $result['value']['shareWith'], 'id' => (string) $result['value']['shareWith'],
'label' => $result['label'], 'label' => $result['label'],
'icon' => $result['icon'], 'icon' => $result['icon'] ?? '',
'source' => $type, 'source' => $type,
'status' => $result['status'], 'status' => $result['status'] ?? '',
'subline' => $result['subline'] 'subline' => $result['subline'] ?? '',
]; ];
} }
} }