forked from Wavyzz/dolibarr
Fix: [ bug #1849 ] Broken flag image when a contact does not have a
country set
This commit is contained in:
@@ -4305,6 +4305,8 @@ function picto_from_langcode($codelang)
|
|||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
|
if (empty($codelang)) return '';
|
||||||
|
|
||||||
if ($codelang == 'auto')
|
if ($codelang == 'auto')
|
||||||
{
|
{
|
||||||
return img_picto_common($langs->trans('AutoDetectLang'), 'flags/int.png');
|
return img_picto_common($langs->trans('AutoDetectLang'), 'flags/int.png');
|
||||||
|
|||||||
Reference in New Issue
Block a user