Fix: [ bug #1119 ] If no country is selected for a warehouse or thids
card, broken IMG is shown
This commit is contained in:
parent
23f7de0873
commit
e63dcc5343
@ -270,8 +270,11 @@ else
|
||||
|
||||
// Country
|
||||
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">';
|
||||
$img=picto_from_langcode($object->country_code);
|
||||
print ($img?$img.' ':'');
|
||||
if (! empty($object->country_code))
|
||||
{
|
||||
$img=picto_from_langcode($object->country_code);
|
||||
print ($img?$img.' ':'');
|
||||
}
|
||||
print $object->country;
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user