better error handling

This commit is contained in:
Roland Gruber 2009-03-07 18:20:03 +00:00
parent 1beba7aea5
commit 24547fb8c7
1 changed files with 2 additions and 2 deletions

View File

@ -446,12 +446,12 @@ if(!empty($_POST['checklogin']))
}
else {
$searchSuccess = false;
$searchError = _('Unable to find the user name in LDAP.');
$searchError = _('Unable to find the user name in LDAP.') . ' ' . ldap_error($searchLDAP->server());
}
}
else {
$searchSuccess = false;
$searchError = _('Unable to find the user name in LDAP.');
$searchError = _('Unable to find the user name in LDAP.') . ' ' . ldap_error($searchLDAP->server());
}
if (!$searchSuccess) {
$error_message = $searchError;