Fetch avatar by id

This commit is contained in:
Michael 2022-04-29 07:30:13 +00:00
parent 1326239576
commit d44641e58c
7 changed files with 45 additions and 9 deletions

View file

@ -1799,7 +1799,7 @@ class Contact
{
// We have to fetch the "updated" variable when it wasn't provided
// The parameter can be provided to improve performance
if (empty($updated) || empty($guid)) {
if (empty($updated)) {
$account = DBA::selectFirst('account-user-view', ['updated', 'guid'], ['id' => $cid]);
$updated = $account['updated'] ?? '';
$guid = $account['guid'] ?? '';