summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Mapping/AbstractMapping.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-07 12:54:50 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-02-10 10:15:00 +0100
commit9f2db6e65da00e2acbf8a497ab601d8054d6525b (patch)
treeac599ada445ddc656a82e93d3228b49544769fe7 /apps/user_ldap/lib/Mapping/AbstractMapping.php
parent45d4c0bf6653a1507f4ab77682aab773ebb62b8d (diff)
downloadnextcloud-server-9f2db6e65da00e2acbf8a497ab601d8054d6525b.tar.gz
nextcloud-server-9f2db6e65da00e2acbf8a497ab601d8054d6525b.zip
Fix ldap:update-uuid
Generators cannot be iterated with while or returned by an other generator, using foreach instead. And a few other problems. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Mapping/AbstractMapping.php')
-rw-r--r--apps/user_ldap/lib/Mapping/AbstractMapping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php
index 653d0e5fbc4..16973f76ff4 100644
--- a/apps/user_ldap/lib/Mapping/AbstractMapping.php
+++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php
@@ -329,12 +329,12 @@ abstract class AbstractMapping {
return $this->getXbyY('directory_uuid', 'ldap_dn_hash', $this->getDNHash($dn));
}
- public function getList(int $offset = null, int $limit = null, $invalidatedOnly = false): array {
+ public function getList(int $offset = 0, int $limit = null, bool $invalidatedOnly = false): array {
$select = $this->dbc->getQueryBuilder();
$select->selectAlias('ldap_dn', 'dn')
->selectAlias('owncloud_name', 'name')
->selectAlias('directory_uuid', 'uuid')
- ->from($this->getTableName(false))
+ ->from($this->getTableName())
->setMaxResults($limit)
->setFirstResult($offset);