Fix warning, when the language is invalid
This commit is contained in:
parent
7e8aee61ba
commit
43fa22470c
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class Engagement
|
|||
$searchtext = self::getSearchTextForItem($parent);
|
||||
if (!$store) {
|
||||
$tags = array_column(Tag::getByURIId($item['parent-uri-id'], [Tag::HASHTAG]), 'name');
|
||||
$language = !empty($parent['language']) ? array_key_first(json_decode($parent['language'], true)) : '';
|
||||
$language = !empty($parent['language']) ? (array_key_first(json_decode($parent['language'], true)) ?? '') : '';
|
||||
$store = DI::userDefinedChannel()->match($searchtext, $language, $tags, $mediatype);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue