Skip to content
Snippets Groups Projects
Commit 17b69e16 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix remove a bad log reporting error when not

parent feed3f71
No related branches found
No related tags found
No related merge requests found
......@@ -499,9 +499,10 @@ class Contact extends CommonObject
*/
function fetch($id, $user=0, $ref_ext='')
{
dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR);
global $langs;
dol_syslog(get_class($this)."::fetch id=".$id, LOG_DEBUG);
$langs->load("companies");
$sql = "SELECT c.rowid, c.fk_soc, c.ref_ext, c.civility as civility_id, c.lastname, c.firstname,";
......@@ -524,7 +525,6 @@ class Contact extends CommonObject
if ($id) $sql.= " WHERE c.rowid = ". $id;
elseif ($ref_ext) $sql .= " WHERE c.ref_ext = '".$this->db->escape($ref_ext)."'";
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
......@@ -565,7 +565,7 @@ class Contact extends CommonObject
$this->email = $obj->email;
$this->jabberid = $obj->jabberid;
$this->skype = $obj->skype;
$this->skype = $obj->skype;
$this->priv = $obj->priv;
$this->mail = $obj->email;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment