MDL-78434 Lib: PHP 8.1 incompatible code relating to LDAP\Connection

This commit is contained in:
sam marshall 2023-06-07 15:38:11 +01:00
parent 71c36d2de1
commit b154e3cd33

View File

@ -209,7 +209,7 @@ function ldap_connect_moodle($host_url, $ldap_version, $user_type, $bind_dn, $bi
} }
if ($start_tls && (!ldap_start_tls($connresult))) { if ($start_tls && (!ldap_start_tls($connresult))) {
$debuginfo .= "Server: '$server', Connection: '$connresult', STARTTLS failed.\n"; $debuginfo .= "Server: '$server', STARTTLS failed.\n";
continue; continue;
} }
@ -224,7 +224,7 @@ function ldap_connect_moodle($host_url, $ldap_version, $user_type, $bind_dn, $bi
return $connresult; return $connresult;
} }
$debuginfo .= "Server: '$server', Connection: '$connresult', Bind result: '$bindresult'\n"; $debuginfo .= "Server: '$server', Bind result: '$bindresult'\n";
} }
// If any of servers were alive we have already returned connection. // If any of servers were alive we have already returned connection.