From 894e7cb916c78b97d8056cae77883ad649b438e2 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 1 Dec 2004 17:04:26 +0000 Subject: [PATCH] Mise en place du check code_client --- htdocs/soc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 66f6d8c2fcf..4021bb339ba 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -225,7 +225,7 @@ elseif ($_GET["action"] == 'edit') print ''.$langs->trans('Fax').''; print ''.$langs->trans('Code client').''; - if ($soc->code_client) + if ($soc->code_client && $soc->check_codeclient() == 0) { print $soc->code_client; } @@ -344,6 +344,10 @@ else print ''; print $langs->trans('Code client').''; print $soc->code_client; + if ($soc->check_codeclient() <> 0) + { + print "Code incorrect"; + } print ''; print ''.$langs->trans('Web').'';