diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index fbba2bce18b..25242e4160f 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -1709,6 +1709,8 @@ class Societe extends CommonObject
$name=$this->name?$this->name:$this->nom;
+ if (! empty($conf->dol_no_mouse_hover)) $notooltip=1;
+
if ($conf->global->SOCIETE_ADD_REF_IN_LIST && (!empty($withpicto))) {
if (($this->client) && (! empty ( $this->code_client ))) {
$code = $this->code_client . ' - ';
@@ -1766,7 +1768,7 @@ class Societe extends CommonObject
if (! empty($this->logo))
{
- $label.= '
';
+ $label.= '
| ';
+ $label.= ' ';
$label .= '' . $langs->trans('Name') . ': ' . $this->getFullName($langs,'','',24);
if (! empty($this->login))
$label .= ' ' . $langs->trans('Login') . ': ' . $this->login; @@ -1808,14 +1807,17 @@ class User extends CommonObject } $type=($this->societe_id?$langs->trans("External").$company:$langs->trans("Internal")); $label .= ' ' . $langs->trans("Type") . ': ' . $type; - if (! empty($this->photo)) { - $form = new Form($db); - $label .= ' | ' . $form->showphoto('userphoto', $this, 80) . ' | ';
+ if (! empty($this->photo))
+ {
+ $label.= '';
+ //if (! is_object($form)) $form = new Form($db);
+ $label.= Form::showphoto('userphoto', $this, 80);
}
- $label.= ' |