forked from deblan/side_menu
fix(LangRepository): check orm capabilities to query entities
This commit is contained in:
parent
8cca320a43
commit
c2ecc5bf98
1 changed files with 6 additions and 1 deletions
|
|
@ -30,7 +30,12 @@ class LangRepository
|
|||
->from('preferences')
|
||||
;
|
||||
|
||||
$stmt = $qb->execute();
|
||||
// Nextcloud >=33+
|
||||
if (method_exists($qb, 'executeQuery')) {
|
||||
$stmt = $qb->executeQuery();
|
||||
} else {
|
||||
$stmt = $qb->execute();
|
||||
}
|
||||
|
||||
$langs = ['en'];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue