';
// Statut pour l'email destinataire (Attentioon != statut du mailing)
if ($obj->statut == 0)
diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index 214c0909495..7c8b4e25d5f 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -1294,7 +1294,7 @@ class Societe extends CommonObject
/**
* \brief Renvoie nom clicable (avec eventuellement le picto)
- * \param withpicto Inclut le picto dans le lien
+ * \param withpicto Inclut le picto dans le lien (0=No picto, 1=Inclut le picto dans le lien, 2=Picto seul)
* \param option Sur quoi pointe le lien ('', 'customer', 'supplier', 'compta')
* \param maxlen Longueur max libelle
* \return string Chaine avec URL
@@ -1330,7 +1330,8 @@ class Societe extends CommonObject
$lien.=(!empty($this->canvas)?'&canvas='.$this->canvas:'').'">';
$lienfin='';
- if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$this->nom,'company').$lienfin.' ');
+ if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$this->nom,'company').$lienfin);
+ if ($withpicto && $withpicto != 2) $result.=' ';
$result.=$lien.($maxlen?dol_trunc($this->nom,$maxlen):$this->nom).$lienfin;
return $result;
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 59db5e91add..23ec2bf6d22 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -1482,7 +1482,7 @@ class User extends CommonObject
/**
* \brief Return a link to the user card (with optionnaly the picto)
- * \param withpicto Include picto in link
+ * \param withpicto Include picto in link (0=No picto, 1=Inclut le picto dans le lien, 2=Picto seul)
* \param option On what the link point to
* \return string String with URL
* \remarks Use this->id,this->nom, this->prenom
@@ -1502,7 +1502,8 @@ class User extends CommonObject
$lienfin='';
}
- if ($withpicto) $result.=($lien.img_object($langs->trans("ShowUser"),'user').$lienfin.' ');
+ if ($withpicto) $result.=($lien.img_object($langs->trans("ShowUser"),'user').$lienfin);
+ if ($withpicto && $withpicto != 2) $result.=' ';
$result.=$lien.$this->getFullName($langs).$lienfin;
return $result;
}