diff --git a/htdocs/ecm/class/ecmfiles.class.php b/htdocs/ecm/class/ecmfiles.class.php index 46d83cefaa8..ab7b13aba90 100644 --- a/htdocs/ecm/class/ecmfiles.class.php +++ b/htdocs/ecm/class/ecmfiles.class.php @@ -754,7 +754,7 @@ class EcmFiles extends CommonObject if (!$error) { $result = $this->deleteExtraFields(); if (!$result) { - $this->errors[] = $this->db->lasterror(); + dol_syslog(get_class($this)."::delete error ".$this->error, LOG_ERR); $error++; } }