From: Pierre Habouzit (MadCoder Date: Wed, 29 Dec 2004 09:50:20 +0000 (+0000) Subject: wibble X-Git-Tag: xorg/old~578 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cd36758923eb386173fba41483547437630d533b;p=platal.git wibble git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-170 --- 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; } // }}}