clean code

This commit is contained in:
Frédéric FRANCE 2022-11-09 14:53:42 +01:00
parent 3255c420ab
commit 1871872c16

View File

@ -752,11 +752,8 @@ class EcmFiles extends CommonObject
// If you need to delete child tables to, you can insert them here
if (!$error) {
$sql = "DELETE FROM " . $this->db->prefix() . $this->table_element. "_extrafields";
$sql .= " WHERE fk_object = ".((int) $this->id);
$resql = $this->db->query($sql);
if (!$resql) {
$result = $this->deleteExtraFields();
if (!$result) {
$this->errors[] = $this->db->lasterror();
$error++;
}