]> git.mxchange.org Git - friendica.git/commitdiff
Fixes warning "Undefined array key "@type"
authorMichael <heluecht@pirati.ca>
Tue, 10 Sep 2024 11:23:06 +0000 (11:23 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 10 Sep 2024 11:23:06 +0000 (11:23 +0000)
src/Model/APContact.php

index 5296043169166009b74c5a90268814d88b5bb690..27bf3aedab0ea495089bb04cae1028f117c4fc64 100644 (file)
@@ -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));