mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Fixes warning "Undefined array key "@type"
This commit is contained in:
parent
d48d07e18d
commit
4712d562b5
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ class APContact
|
|||
{
|
||||
$original = $name;
|
||||
foreach ($tags as $tag) {
|
||||
if ($tag['@type'] != 'toot:Emoji') {
|
||||
if (empty($tag['@type']) || ($tag['@type'] != 'toot:Emoji')) {
|
||||
continue;
|
||||
}
|
||||
$name = trim(str_replace($tag['as:name'], '', $name));
|
||||
|
|
Loading…
Reference in a new issue