Fix: La fonction rollback etait appelée sur l'objet paiement au lieu de l'objet db de l'objet paiement

This commit is contained in:
Laurent Destailleur 2004-06-08 11:36:50 +00:00
parent 8df50cc947
commit 9030cb9dde

View File

@ -139,22 +139,21 @@ class Paiement
{ {
$sql_err++; $sql_err++;
} }
}
if ( $total > 0 && $sql_err == 0 )
if ( $sql_err == 0 )
{ {
$this->db->commit(); $this->db->commit();
return $this->id; return $this->id;
} }
else else
{ {
$this->rollback(); $this->db->rollback();
return -1; return -1;
} }
} }
} }
}
/* /*
* *
* *