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').'';