forked from deblan/side_menu
Update 'lib/Service/LangRepository.php'
Resolve web app BSOD giving the following error due to no proper escaping. "exception":{ + "Exception":"Doctrine\\DBAL\\Exception\\InvalidFieldNameException", + "Message":"" + An exception occurred while executing a query: SQLSTATE[42703]: Undefined column: 7 ERROR: column "lang" does not exist + LINE 1: ...configvalue FROM "oc_preferences" WHERE configkey="lang" and... Signed-off-by: sergeng <sergeng@yahoo.fr>
This commit is contained in:
parent
4e21020600
commit
d8072d8568
|
@ -26,7 +26,7 @@ class LangRepository
|
|||
$qb = $this->db->getQueryBuilder();
|
||||
|
||||
$qb->select($qb->createFunction('DISTINCT configvalue'))
|
||||
->where('configkey="lang" and appid="core" and configvalue<>"en"')
|
||||
->where('configkey=\'lang\' and appid=\'core\' and configvalue<>\'en\'')
|
||||
->from('preferences')
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue