Fix: syntax error

This commit is contained in:
Regis Houssin 2009-12-27 08:10:02 +00:00
parent 3885583db6
commit 9d9de3b016

View File

@ -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))
{