From: Hypolite Petovan Date: Wed, 27 Feb 2019 12:59:43 +0000 (-0500) Subject: Replace isset by array_key_exists on array class constant in Model\Term X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7217d24a97611116f6b0171d052e7057fbf2eddd;p=friendica.git Replace isset by array_key_exists on array class constant in Model\Term - Addresses https://github.com/friendica/friendica/issues/6386#issuecomment-467835406 --- diff --git a/src/Model/Term.php b/src/Model/Term.php index ed67969265..f196974a8f 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -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]; } }