Fix: La fonction rollback etait appele sur l'objet paiement au lieu de l'objet db de l'objet paiement
This commit is contained in:
parent
8df50cc947
commit
9030cb9dde
@ -139,20 +139,19 @@ class Paiement
|
||||
{
|
||||
$sql_err++;
|
||||
}
|
||||
|
||||
|
||||
if ( $sql_err == 0 )
|
||||
{
|
||||
$this->db->commit();
|
||||
return $this->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( $total > 0 && $sql_err == 0 )
|
||||
{
|
||||
$this->db->commit();
|
||||
return $this->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user