X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FTerm.php;h=f196974a8f66d10279c286a4be23fcf6931e2ff2;hb=4b9820031542d83a0273ac79f833831e8ed93b73;hp=5266627aca801a41b67ba389e2f80db78dda77ad;hpb=1917f04153ffa37880a9900c76e54d6d73e90c85;p=friendica.git diff --git a/src/Model/Term.php b/src/Model/Term.php index 5266627aca..f196974a8f 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -1,13 +1,23 @@ $tag]); } if (DBA::exists('term', ['uid' => $item['uid'], 'otype' => self::OBJECT_TYPE_POST, 'oid' => $item_id, 'term' => $term, 'type' => $type])) { @@ -386,7 +404,7 @@ class Term { $tag_chars = []; foreach ($types as $type) { - if (isset(self::TAG_CHARACTER[$type])) { + if (array_key_exists($type, self::TAG_CHARACTER)) { $tag_chars[] = self::TAG_CHARACTER[$type]; } }