mirror of
https://github.com/friendica/friendica
synced 2024-12-22 13:20:15 +00:00
Merge pull request #14430 from annando/warning
Fixes warning "Undefined array key "@type"
This commit is contained in:
commit
eb066b258d
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