mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Avoid some more warning
This commit is contained in:
parent
d58147413f
commit
8748aff110
1 changed files with 3 additions and 1 deletions
|
@ -1393,7 +1393,9 @@ class Contact extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
self::updateAvatar($data["photo"], $uid, $contact_id);
|
||||
if (!empty($data['photo'])) {
|
||||
self::updateAvatar($data['photo'], $uid, $contact_id);
|
||||
}
|
||||
|
||||
$fields = ['url', 'nurl', 'addr', 'alias', 'name', 'nick', 'keywords', 'location', 'about', 'avatar-date', 'pubkey'];
|
||||
$contact = DBA::selectFirst('contact', $fields, ['id' => $contact_id]);
|
||||
|
|
Loading…
Reference in a new issue