fix(LangRepository): check orm capabilities to query entities

This commit is contained in:
Simon Vieille
2026-03-01 13:08:26 +01:00
parent 8cca320a43
commit c2ecc5bf98
+6 -1
View File
@@ -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'];