Merge pull request #6767 from MrPetovan/bug/fatal-errors

Replace isset by array_key_exists on array class constant in Model\Term
This commit is contained in:
Philipp
2019-02-27 14:20:25 +01:00
committed by GitHub

View 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];
}
}