better error message

This commit is contained in:
Roland Gruber 2018-08-29 18:19:17 +02:00
parent abceebdc4b
commit 32d18361e9
1 changed files with 1 additions and 1 deletions

View File

@ -1358,7 +1358,7 @@ function getExtendedLDAPErrorMessage($server) {
$ldapMsg = null;
ldap_get_option($server, LDAP_OPT_ERROR_STRING, $ldapMsg);
if (empty($ldapMsg)) {
return null;
return ldap_error($server);
}
return $ldapMsg;
}