From fb40d4540293f57b431447442437b317bc42cd30 Mon Sep 17 00:00:00 2001 From: Ilja Lukin Date: Mon, 16 Dec 2024 16:34:30 +0100 Subject: [PATCH] Error when creating new accounts with numeric value as PersonID while querying LDAP --- .../Course/class.ilECSCmsCourseMemberCommandQueueHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/WebServices/ECS/classes/Course/class.ilECSCmsCourseMemberCommandQueueHandler.php b/Services/WebServices/ECS/classes/Course/class.ilECSCmsCourseMemberCommandQueueHandler.php index 284bd2e8fb57..09adf4815392 100644 --- a/Services/WebServices/ECS/classes/Course/class.ilECSCmsCourseMemberCommandQueueHandler.php +++ b/Services/WebServices/ECS/classes/Course/class.ilECSCmsCourseMemberCommandQueueHandler.php @@ -431,7 +431,7 @@ private function createMember($a_person_id): void $query = new ilLDAPQuery($server); $query->bind(ilLDAPQuery::LDAP_BIND_DEFAULT); - $users = $query->fetchUser($a_person_id); + $users = $query->fetchUser((string) $a_person_id); if ($users) { ilUserCreationContext::getInstance()->addContext(ilUserCreationContext::CONTEXT_LDAP);