fix SQL Exception InvalidFieldNameException (#93)
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
parent
007ac2bb8e
commit
0f73ad42c4
|
@ -26,7 +26,12 @@ class LangRepository
|
||||||
$qb = $this->db->getQueryBuilder();
|
$qb = $this->db->getQueryBuilder();
|
||||||
|
|
||||||
$qb->select($qb->createFunction('DISTINCT configvalue'))
|
$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')
|
->from('preferences')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue