From 0b667d1089a55cbb61a44d423797f8c9d60f36c6 Mon Sep 17 00:00:00 2001 From: jlb Date: Fri, 5 Sep 2003 14:12:58 +0000 Subject: [PATCH] la fonction cotisation renvoie l'id de la cotisation inseree (utile pour fiche.php) au lieu de 1 --- htdocs/adherents/adherent.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index ef2afbdc00c..949f83d8d6a 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -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