fix sql error return

This commit is contained in:
Florian HENRY 2022-02-08 08:46:15 +01:00
parent e672b6f6e0
commit 3f2c04a53c

View File

@ -703,6 +703,10 @@ class ExtraFields
}
dol_syslog(get_class($this).'::update', LOG_DEBUG);
$resql = $this->db->query($sql, 1, 'dml');
if ($resql < 0) {
$this->error = $this->db->lasterror();
return -1;
}
return 1;
} else {
$this->error = $this->db->lasterror();