From: Michael Date: Tue, 10 Sep 2024 11:23:06 +0000 (+0000) Subject: Fixes warning "Undefined array key "@type" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4712d562b5a008db6fc944c1743f56d20a374af8;p=friendica.git Fixes warning "Undefined array key "@type" --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 5296043169..27bf3aedab 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -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));