diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index 2bd55c6c66a..f0b6ab5ec2b 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -2015,13 +2015,13 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '')
print '
';
$transfound = 0;
$transkey = '';
- if (in_array($fieldlist[$field], array('label', 'libelle')) and !empty($obj->code)) // For label
+ if (in_array($fieldlist[$field], array('label', 'libelle'))) // For label
{
// Special case for labels
- if ($tabname == MAIN_DB_PREFIX.'c_civility') {
+ if ($tabname == MAIN_DB_PREFIX.'c_civility' && !empty($obj->code)) {
$transkey = "Civility".strtoupper($obj->code);
}
- if ($tabname == MAIN_DB_PREFIX.'c_payment_term') {
+ if ($tabname == MAIN_DB_PREFIX.'c_payment_term' && !empty($obj->code)) {
$langs->load("bills");
$transkey = "PaymentConditionShort".strtoupper($obj->code);
}
|