Modification de la valeur de retour dans create()

This commit is contained in:
Rodolphe Quiedeville 2003-04-13 19:29:42 +00:00
parent 34c2b16248
commit d24471493b

View File

@ -89,23 +89,14 @@ class Facture {
{
$this->id = $this->db->last_insert_id();
$sql = "INSERT INTO llx_fa_pr (fk_facture,fk_propal) VALUES ($this->id, $this->propalid);";
if ( $this->db->query($sql) )
{
return $this->id;
}
else
{
print $this->db->error() . '<b><br>'.$sql;
return $this->id;
}
return $this->id;
}
else
{
print $this->db->error() . '<b><br>'.$sql;
return 0;
}
}
/*