From cd36758923eb386173fba41483547437630d533b Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Wed, 29 Dec 2004 09:50:20 +0000 Subject: [PATCH] wibble git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-170 --- include/validations/evts.inc.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/validations/evts.inc.php b/include/validations/evts.inc.php index e58dd78..2469e3d 100644 --- a/include/validations/evts.inc.php +++ b/include/validations/evts.inc.php @@ -87,13 +87,12 @@ class EvtReq extends Validate function commit() { global $globals; - $globals->xdb->execute( + return $globals->xdb->execute( "INSERT INTO evenements - SET user_id = {?}, creation_date=NULL, titre={?}, texte={?}, + SET user_id = {?}, creation_date=NOW(), titre={?}, texte={?}, peremption={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide')", - $this->_uid, $this->titre, $this->texte, + $this->uid, $this->titre, $this->texte, $this->peremption, $this->pmin, $this->pmax); - return true; } // }}} -- 2.1.4