Ajout traces

This commit is contained in:
Laurent Destailleur 2007-11-08 23:48:58 +00:00
parent c77515a8a4
commit c9e104f905
2 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class InfoBox
}
else {
$this->error=$this->db->error();
dolibarr_syslog("InfoBox::listBoxes Error ".$this->error);
dolibarr_syslog("InfoBox::listBoxes Error ".$this->error, LOG_ERR);
return array();
}
}
@ -134,7 +134,7 @@ class InfoBox
}
else {
$this->error=$this->db->error();
dolibarr_syslog("InfoBox::listBoxes Error ".$this->error);
dolibarr_syslog("InfoBox::listBoxes Error ".$this->error, LOG_ERR);
return array();
}
}

View File

@ -131,6 +131,7 @@ class box_prospect extends ModeleBoxes {
}
}
else {
dolibarr_syslog("box_prospect::loadBox not allowed de read this box content",LOG_ERR);
$this->info_box_contents[0][0] = array('align' => 'left',
'text' => $langs->trans("ReadPermissionNotAllowed"));
}