mirror of
https://github.com/friendica/friendica
synced 2024-12-22 12:40: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;
|
$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