Bugfix sur le test dernier SDA

This commit is contained in:
Rodolphe Quiedeville 2007-07-09 12:51:44 +00:00
parent c27c834e00
commit cbbd9a9304

View File

@ -155,7 +155,7 @@ if ($_POST["action"] == 'add')
$verif = "nok";
}
if (strlen(trim($_POST["cliend"])) <> 9 && $verif == 'ok')
if (strlen(trim($_POST["cliend"])) > 0 && strlen(trim($_POST["cliend"])) <> 9 && $verif == 'ok')
{
$mesg = "Numéro de ligne dernier SDA (0".$_POST["cliend"].") incorrect";
$verif = "nok";