fix SQL Exception InvalidFieldNameException (#93)
continuous-integration/drone/push Build is running Details

This commit is contained in:
Simon Vieille 2022-02-07 14:28:34 +01:00
parent 007ac2bb8e
commit 0f73ad42c4
1 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,12 @@ class LangRepository
$qb = $this->db->getQueryBuilder();
$qb->select($qb->createFunction('DISTINCT configvalue'))
->where('configkey="lang" and appid="core" and configvalue<>"en"')
->where('configkey=:configkey and appid=:appid and configvalue<>:configvalue')
->setParameters([
'configkey' => 'lang',
'appid' => 'core',
'configvalue' => 'en',
])
->from('preferences')
;