1
0
Fork 0

Removed notices, will it ever end?

This commit is contained in:
Michael 2018-08-17 03:19:42 +00:00
commit 0342f9e084
6 changed files with 21 additions and 4 deletions

View file

@ -1580,6 +1580,16 @@ class DFRN
$author["avatar"] = current($avatarlist);
}
if (empty($author['avatar']) && !empty($author['link'])) {
$cid = Contact::getIdForURL($author['link'], 0);
if (!empty($cid)) {
$contact = DBA::selectFirst('contact', ['avatar'], ['id' => $cid]);
if (DBA::isResult($contact)) {
$author['avatar'] = $contact['avatar'];
}
}
}
if (DBA::isResult($contact_old) && !$onlyfetch) {
logger("Check if contact details for contact " . $contact_old["id"] . " (" . $contact_old["nick"] . ") have to be updated.", LOGGER_DEBUG);