Replace isset by array_key_exists on array class constant in Model\Term
- Addresses https://github.com/friendica/friendica/issues/6386#issuecomment-467835406
This commit is contained in:
parent
2354184360
commit
7217d24a97
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ class Term
|
||||||
{
|
{
|
||||||
$tag_chars = [];
|
$tag_chars = [];
|
||||||
foreach ($types as $type) {
|
foreach ($types as $type) {
|
||||||
if (isset(self::TAG_CHARACTER[$type])) {
|
if (array_key_exists($type, self::TAG_CHARACTER)) {
|
||||||
$tag_chars[] = self::TAG_CHARACTER[$type];
|
$tag_chars[] = self::TAG_CHARACTER[$type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue