la fonction cotisation renvoie l'id de la cotisation inseree (utile pour fiche.php) au lieu de 1

This commit is contained in:
jlb 2003-09-05 14:12:58 +00:00
parent 4b831f06c7
commit 0b667d1089

View File

@ -509,7 +509,7 @@ class Adherent
{ {
if ( $this->db->affected_rows() ) if ( $this->db->affected_rows() )
{ {
$rowid=$this->db->last_insert_id();
$datefin = mktime(12, 0 , 0, $datefin = mktime(12, 0 , 0,
strftime("%m",$date), strftime("%m",$date),
strftime("%d",$date), strftime("%d",$date),
@ -519,7 +519,7 @@ class Adherent
if ( $this->db->query( $sql) ) if ( $this->db->query( $sql) )
{ {
return 1; return $rowid;
} }
} }
else else