Browse Source

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

Replace isset by array_key_exists on array class constant in Model\Term
pull/6770/head
Philipp 2 years ago
committed by GitHub
parent
commit
f4dfd4f649
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Model/Term.php

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

Loading…
Cancel
Save