mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Avoid useless "warning" logging
This commit is contained in:
parent
a9d7767497
commit
818ea3e33e
2 changed files with 4 additions and 4 deletions
|
@ -2301,7 +2301,7 @@ class Contact
|
|||
return;
|
||||
}
|
||||
|
||||
if (!Network::isValidHttpUrl($avatar)) {
|
||||
if (!empty($avatar) && !Network::isValidHttpUrl($avatar)) {
|
||||
Logger::warning('Invalid avatar', ['cid' => $cid, 'avatar' => $avatar]);
|
||||
$avatar = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue