Fix coding standards
parent
8b26d488ad
commit
e5978d74c7
|
@ -402,7 +402,7 @@ class Channel extends BaseModule
|
||||||
private function addLanguageCondition(array $condition): array
|
private function addLanguageCondition(array $condition): array
|
||||||
{
|
{
|
||||||
$conditions = [];
|
$conditions = [];
|
||||||
$languages = $this->pConfig->get($this->session->getLocalUserId(), 'channel', 'languages', [User::getLanguageCode($this->session->getLocalUserId(), false)]);
|
$languages = $this->pConfig->get($this->session->getLocalUserId(), 'channel', 'languages', [User::getLanguageCode($this->session->getLocalUserId(), false)]);
|
||||||
foreach ($languages as $language) {
|
foreach ($languages as $language) {
|
||||||
$conditions[] = "JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?";
|
$conditions[] = "JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?";
|
||||||
$condition[] = substr($language, 0, 2);
|
$condition[] = substr($language, 0, 2);
|
||||||
|
|
Loading…
Reference in New Issue