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
This commit is contained in:
Andy Xheli 2022-05-27 14:48:06 -05:00 committed by backportbot-nextcloud[bot]
parent c765dac633
commit 511ade9497

View file

@ -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'])) {