Modifie l'affichage des erreurs d'update LDAP

This commit is contained in:
Rodolphe Quiedeville 2004-12-01 12:04:18 +00:00
parent ac06ba64b3
commit 024d6ec986

View File

@ -50,7 +50,6 @@ if ($_GET["action"] == 'create_user' && $user->admin)
$nuser->nom = $contact->nom; $nuser->nom = $contact->nom;
$nuser->prenom = $contact->prenom; $nuser->prenom = $contact->prenom;
$nuser->create_from_contact($contact); $nuser->create_from_contact($contact);
} }
if ($_POST["action"] == 'add') if ($_POST["action"] == 'add')
@ -125,7 +124,10 @@ if ($_POST["action"] == 'update')
$result = $contact->update($_POST["contactid"], $user); $result = $contact->update($_POST["contactid"], $user);
if ($contact->error) { array_push($error,$contact->error); } if ($contact->error)
{
$error = $contact->error;
}
} }
/* /*
@ -182,7 +184,7 @@ if ($_GET["action"] == 'delete')
// Affiche les erreurs // Affiche les erreurs
if (sizeof($error)) if (sizeof($error))
{ {
print '<div class="message"><br>'; print '<div class="message"><br>'.LDAP_SERVER_TYPE.'<br>';
print join("<br>",$error); print join("<br>",$error);
print '<br><br></div>'; print '<br><br></div>';
} }