diff --git a/htdocs/boxes.php b/htdocs/boxes.php index e19f5307164..7f1b80e6d53 100644 --- a/htdocs/boxes.php +++ b/htdocs/boxes.php @@ -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(); } } diff --git a/htdocs/includes/boxes/box_prospect.php b/htdocs/includes/boxes/box_prospect.php index 809cb526b95..fd22fe16dfb 100644 --- a/htdocs/includes/boxes/box_prospect.php +++ b/htdocs/includes/boxes/box_prospect.php @@ -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")); }