fix error log

This commit is contained in:
florian HENRY 2018-03-27 18:39:18 +02:00
parent 934d2d8881
commit af7c1d8da1

View File

@ -4787,6 +4787,7 @@ abstract class CommonObject
if (! $resql) if (! $resql)
{ {
$this->error=$this->db->lasterror(); $this->error=$this->db->lasterror();
dol_syslog(get_class($this) . "::".__METHOD__ . $this->error, LOG_ERR);
$this->db->rollback(); $this->db->rollback();
return -1; return -1;
} }
@ -5804,7 +5805,7 @@ abstract class CommonObject
{ {
$labeltoshow = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$labeltoshow.'</span>'; $labeltoshow = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$labeltoshow.'</span>';
} }
if (empty($onetrtd)) $out .= '<td>'; if (empty($onetrtd)) $out .= '<td>';
else $out .= '<td'.($colspan?' colspan="'.($colspan+1).'"':'').'>'; else $out .= '<td'.($colspan?' colspan="'.($colspan+1).'"':'').'>';