fix(LangRepository): check orm capabilities to query entities
This commit is contained in:
@@ -30,7 +30,12 @@ class LangRepository
|
|||||||
->from('preferences')
|
->from('preferences')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// Nextcloud >=33+
|
||||||
|
if (method_exists($qb, 'executeQuery')) {
|
||||||
|
$stmt = $qb->executeQuery();
|
||||||
|
} else {
|
||||||
$stmt = $qb->execute();
|
$stmt = $qb->execute();
|
||||||
|
}
|
||||||
|
|
||||||
$langs = ['en'];
|
$langs = ['en'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user