la fonction cotisation renvoie l'id de la cotisation inseree (utile pour fiche.php) au lieu de 1
This commit is contained in:
parent
4b831f06c7
commit
0b667d1089
@ -509,7 +509,7 @@ class Adherent
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
|
||||
$rowid=$this->db->last_insert_id();
|
||||
$datefin = mktime(12, 0 , 0,
|
||||
strftime("%m",$date),
|
||||
strftime("%d",$date),
|
||||
@ -519,7 +519,7 @@ class Adherent
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
return 1;
|
||||
return $rowid;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user