From: x2002marichez Date: Mon, 1 Nov 2004 17:27:03 +0000 (+0000) Subject: mini-bugfixs X-Git-Tag: xorg/old~1110 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fea8241e3ce4838bdc01bd7598f38ba985e358ee;p=platal.git mini-bugfixs set blah='NOW()'; -> blah='0000-00-00' set blah=NOW() is correct --- diff --git a/htdocs/admin/homonymes.php b/htdocs/admin/homonymes.php index c1d384f..371ac4a 100644 --- a/htdocs/admin/homonymes.php +++ b/htdocs/admin/homonymes.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: homonymes.php,v 1.4 2004-09-05 17:39:42 x2000habouzit Exp $ + $Id: homonymes.php,v 1.5 2004-11-01 17:27:03 x2002marichez Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -64,7 +64,7 @@ if ($target) { $op = 'list'; break; case 'correct': - $globals->db->query("UPDATE aliases SET type='homonyme',expire='NOW()' WHERE alias='$loginbis'"); + $globals->db->query("UPDATE aliases SET type='homonyme',expire=NOW() WHERE alias='$loginbis'"); $globals->db->query("REPLACE INTO homonymes (homonyme_id,user_id) VALUES('$target','$target')"); $mymail = new DiogenesMailer($cc,$forlife,"Mise en place du robot $loginbis@polytechnique.org",false,$cc); $mymail->addHeader($FROM); diff --git a/htdocs/inscription/step3.php b/htdocs/inscription/step3.php index db1d11d..20e936f 100644 --- a/htdocs/inscription/step3.php +++ b/htdocs/inscription/step3.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: step3.php,v 1.2 2004-10-31 16:02:46 x2000chevalier Exp $ + $Id: step3.php,v 1.3 2004-11-01 17:27:07 x2002marichez Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -71,7 +71,7 @@ $globals->db->query($sql); $globals->db->query("UPDATE auth_user_md5 SET last_known_email='{$_REQUEST['email']}' WHERE matricule = $matricule"); // si on venait de la page maj.php, on met a jour la table envoidirect if(isset($_REQUEST['envoidirect'])) - $globals->db->query("UPDATE envoidirect SET date_succes='NOW()' WHERE uid='{$_REQUEST['envoidirect']}'"); + $globals->db->query("UPDATE envoidirect SET date_succes=NOW() WHERE uid='{$_REQUEST['envoidirect']}'"); require("tpl.mailer.inc.php"); $mymail = new TplMailer('inscrire.mail.tpl');