backport bug homonymie inscription
authorPascal Corpet <pascal.corpet@m4x.org>
Thu, 14 Apr 2005 15:27:50 +0000 (15:27 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:26 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.5--patch-6
   bug homonymie inscription

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-543

include/register.inc.php

index b96f487..4b7bb6a 100644 (file)
@@ -181,7 +181,7 @@ function create_aliases (&$sub)
             "envoie un mail à <a href=\"mailto:support@polytechnique.org\">support@polytechnique.org</a> en expliquant ta situation.";
     }
     
-    $res      = $globals->xdb->query('SELECT id, type, expire FROM aliases WHERE alias={?}', $forlife);
+    $res      = $globals->xdb->query('SELECT id, type, expire FROM aliases WHERE alias={?}', $mailorg);
 
     if ( $res->numRows() ) {