diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 21157ed2b5a..16f3c007a8c 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -974,9 +974,9 @@ class Facture extends CommonObject $error=0; $this->db->begin(); - $sql = 'DELETE FROM '.MAIN_DB_PREFIX.'element_element'; - $sql.= ' WHERE fk_target = '.$rowid; - $sql.= ' AND targettype = '.$this->element; + $sql = "DELETE FROM ".MAIN_DB_PREFIX."element_element"; + $sql.= " WHERE fk_target = ".$rowid; + $sql.= " AND targettype = '".$this->element."'"; if ($this->db->query($sql)) {