Update actioncomm.class.php
This commit is contained in:
parent
c4d898e155
commit
e2660fd31c
@ -774,7 +774,7 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
dol_syslog(get_class($this)."::delete", LOG_DEBUG);
|
dol_syslog(get_class($this)."::delete", LOG_DEBUG);
|
||||||
$res=$this->db->query($sql);
|
$res=$this->db->query($sql);
|
||||||
if ($res < 0) {
|
if (!$res) {
|
||||||
$this->error=$this->db->lasterror();
|
$this->error=$this->db->lasterror();
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
@ -785,7 +785,7 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
dol_syslog(get_class($this)."::delete", LOG_DEBUG);
|
dol_syslog(get_class($this)."::delete", LOG_DEBUG);
|
||||||
$res=$this->db->query($sql);
|
$res=$this->db->query($sql);
|
||||||
if ($res < 0) {
|
if (!$res) {
|
||||||
$this->error=$this->db->lasterror();
|
$this->error=$this->db->lasterror();
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user