clean code
This commit is contained in:
parent
3255c420ab
commit
1871872c16
@ -752,11 +752,8 @@ class EcmFiles extends CommonObject
|
|||||||
|
|
||||||
// If you need to delete child tables to, you can insert them here
|
// If you need to delete child tables to, you can insert them here
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$sql = "DELETE FROM " . $this->db->prefix() . $this->table_element. "_extrafields";
|
$result = $this->deleteExtraFields();
|
||||||
$sql .= " WHERE fk_object = ".((int) $this->id);
|
if (!$result) {
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
|
||||||
if (!$resql) {
|
|
||||||
$this->errors[] = $this->db->lasterror();
|
$this->errors[] = $this->db->lasterror();
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user