Fix: No sentence into undefined values

This commit is contained in:
Laurent Destailleur 2011-05-25 13:03:04 +00:00
parent 507bc1e47b
commit 27502caa85
2 changed files with 3 additions and 3 deletions

View File

@ -494,8 +494,8 @@ class Contact extends CommonObject
$this->fk_pays = $obj->fk_pays;
$this->pays_code = $obj->fk_pays?$obj->pays_code:'';
$this->pays = ($obj->fk_pays > 0)?$langs->transnoentities("Country".$obj->pays_code):$langs->transnoentities("SelectCountry");
$this->country = ($obj->fk_pays > 0)?$langs->transnoentities("Country".$obj->pays_code):$langs->transnoentities("SelectCountry");
$this->pays = ($obj->fk_pays > 0)?$langs->transnoentitiesnoconv("Country".$obj->pays_code):'';
$this->country = ($obj->fk_pays > 0)?$langs->transnoentitiesnoconv("Country".$obj->pays_code):'';
$this->socid = $obj->fk_soc;
$this->socname = $obj->socname;

View File

@ -817,7 +817,7 @@ else
// Address
print '<tr><td>'.$langs->trans("Address").'</td><td colspan="3">';
dol_print_address($object->address,'gmap','thirdparty',$object->id);
dol_print_address($object->address,'gmap','contact',$object->id);
print '</td></tr>';
// Zip Town