mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +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;
|
$original = $name;
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
if ($tag['@type'] != 'toot:Emoji') {
|
if (empty($tag['@type']) || ($tag['@type'] != 'toot:Emoji')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$name = trim(str_replace($tag['as:name'], '', $name));
|
$name = trim(str_replace($tag['as:name'], '', $name));
|
||||||
|
|
Loading…
Reference in a new issue