Fix User profile picture when performing the search

Signed-off-by: Andy Xheli <axheli@axtsolutions.com>

Before 
![image](https://user-images.githubusercontent.com/59488153/140980158-b9108161-57ab-48b4-ae6f-98ec4e72775a.png)

After




Fix for #31065
pull/32635/head
Andy Xheli 4 years ago committed by GitHub
parent ec96aa527b
commit c19c059994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      lib/private/Contacts/ContactsMenu/ContactsStore.php

@ -284,8 +284,11 @@ class ContactsStore implements IContactsStore {
private function contactArrayToEntry(array $contact): Entry {
$entry = new Entry();
if (isset($contact['id'])) {
$entry->setId($contact['id']);
if (isset($contact['UID'])) {
$entry->setId($contact['UID']);
$uid = $contact['UID'];
$avatar = "/index.php/avatar/$uid/64";
$entry->setAvatar($avatar);
}
if (isset($contact['FN'])) {

Loading…
Cancel
Save