diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 0d50e08e0fd..f26aa4c527c 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1574,7 +1574,7 @@ class User extends CommonObject $sql = "DELETE FROM ".MAIN_DB_PREFIX."user_clicktodial"; $sql .= " WHERE fk_user = ".$this->id; - dol_syslog(get_class($this).'::update_clicktodial sql='.$sql); + dol_syslog(get_class($this).'::update_clicktodial sql='.$sql); $result = $this->db->query($sql); $sql = "INSERT INTO ".MAIN_DB_PREFIX."user_clicktodial"; @@ -1739,14 +1739,11 @@ class User extends CommonObject $lien = ''; $lienfin=''; - if ($option == 'xxx') + if ($withpicto) { - $lien = ''; - $lienfin=''; + $result.=($lien.img_object($langs->trans("ShowUser"),'user').$lienfin); + if ($withpicto != 2) $result.=' '; } - - if ($withpicto) $result.=($lien.img_object($langs->trans("ShowUser"),'user').$lienfin); - if ($withpicto && $withpicto != 2) $result.=' '; $result.=$lien.$this->getFullName($langs).$lienfin; return $result; }