diff --git a/htdocs/contact/canvas/actions_contactcard_common.class.php b/htdocs/contact/canvas/actions_contactcard_common.class.php index b4e5712993f..11f391f7bd8 100644 --- a/htdocs/contact/canvas/actions_contactcard_common.class.php +++ b/htdocs/contact/canvas/actions_contactcard_common.class.php @@ -211,8 +211,8 @@ class ActionsContactCardCommon $this->tpl['zip'] = ($this->object->cp?$this->object->cp.' ':''); - $img=picto_from_langcode($this->pays_code); - $this->tpl['country'] = ($img?$img.' ':'').$this->pays; + $img=picto_from_langcode($this->object->pays_code); + $this->tpl['country'] = ($img?$img.' ':'').$this->object->pays; $this->tpl['phone_pro'] = dol_print_phone($this->object->phone_pro,$this->object->pays_code,0,$this->object->id,'AC_TEL'); $this->tpl['phone_perso'] = dol_print_phone($this->object->phone_perso,$this->object->pays_code,0,$this->object->id,'AC_TEL');