wibble
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Wed, 29 Dec 2004 09:50:20 +0000 (09:50 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:59 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-170

include/validations/evts.inc.php

index e58dd78..2469e3d 100644 (file)
@@ -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;
     }
 
     // }}}