Initialisation du statut ouvert dans la methode create

This commit is contained in:
bouba 2003-11-17 22:07:30 +00:00
parent ce34dba52a
commit 0ce01090e6

View File

@ -51,11 +51,11 @@ class Entrepot
if ($this->db->query($sql) )
{
$id = $this->db->last_insert_id();
$id = $this->db->last_insert_id();
if ($id > 0)
{
$this->id = $id;
$this->statut = 1;
if ( $this->update($id, $user) )
{
$this->db->query("COMMIT") ;