From 9f2e747986e1d96f3bb89100153f23bed64b388f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Sep 2004 17:11:10 +0000 Subject: [PATCH] Trad: Traduction du dictionnaires des pays. --- htdocs/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 230225c8013..5575b32b8ce 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -204,7 +204,7 @@ class Form } # Si traduction existe, on l'utilise, sinon on prend le libellé par défaut if ($obj->code) { print '['.$obj->code.'] '; } - print ($langs->trans("Country".$obj->code)!="Country".$obj->code?$langs->trans("Country".$obj->code):($obj->libelle!='-'?$obj->libelle:'')); + print ($obj->code && $langs->trans("Country".$obj->code)!="Country".$obj->code?$langs->trans("Country".$obj->code):($obj->libelle!='-'?$obj->libelle:'')); print ''; $i++; }