]> git.mxchange.org Git - friendica.git/commitdiff
Replace isset by array_key_exists on array class constant in Model\Term
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 27 Feb 2019 12:59:43 +0000 (07:59 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 27 Feb 2019 13:00:04 +0000 (08:00 -0500)
- Addresses https://github.com/friendica/friendica/issues/6386#issuecomment-467835406

src/Model/Term.php

index ed67969265e4989f947fcaf60fcbfe42b122ba1a..f196974a8f66d10279c286a4be23fcf6931e2ff2 100644 (file)
@@ -404,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];
                        }
                }