Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-09 11:05:49 +0300
committerGitHub <noreply@github.com>2020-11-09 11:05:49 +0300
commitf2aa9e43b9c4c2be757be7d2becc7c23fb0d61ae (patch)
tree2da130cb57bb12349a7dfa8ae0441b00145a3266
parenta414a5350b8371d027d8729bfd1c342cfabc4989 (diff)
parent2d3c77107ca7736282b6d1903db1a12eeade5c3b (diff)
Merge pull request #1131 from nextcloud/backport/1055/stable20
[stable20] Use the proper paremter type for the IN query
-rw-r--r--lib/Folder/FolderManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Folder/FolderManager.php b/lib/Folder/FolderManager.php
index 934fe6d2..2b98d8f8 100644
--- a/lib/Folder/FolderManager.php
+++ b/lib/Folder/FolderManager.php
@@ -351,7 +351,7 @@ class FolderManager {
'a',
$query->expr()->eq('f.folder_id', 'a.folder_id')
)
- ->where($query->expr()->in('a.group_id', $groupIds));
+ ->where($query->expr()->in('a.group_id', $query->createNamedParameter($groupIds, IQueryBuilder::PARAM_STR_ARRAY)));
$this->joinQueryWithFileCache($query, $rootStorageId);
$result = $query->execute()->fetchAll();