diff --git a/Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php b/Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php index 6ee7e0a34a20..faa3d09fbbb6 100644 --- a/Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php +++ b/Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php @@ -100,7 +100,7 @@ public static function getAssignmentsForUpdate(int $a_server_id, $a_usr_id, $a_u $res = $ilDB->query($query); $roles = []; while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) { - $rule = ilLDAPRoleAssignmentRule::_getInstanceByRuleId($row->rule_id); + $rule = ilLDAPRoleAssignmentRule::_getInstanceByRuleId((int) $row->rule_id); $matches = $rule->matches($a_usr_data); if ($matches && $row->add_on_update) {