Prevents SQL error.
authorStéphane Jacob <sj@m4x.org>
Tue, 30 Nov 2010 10:30:15 +0000 (11:30 +0100)
committerStéphane Jacob <sj@m4x.org>
Tue, 30 Nov 2010 10:30:15 +0000 (11:30 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/register/register.inc.php

index de4eb8d..bf186a1 100644 (file)
@@ -198,9 +198,9 @@ function finishRegistration($subState)
     global $globals;
 
     $hash = rand_url_id(12);
-    XDB::execute('INSERT INTO  register_pending (uid, forlife, bestalias, mailorg2, password,
-                                                 email, date, relance, naissance, hash, services)
-                       VALUES  ({?}, {?}, {?}, {?}, {?}, {?}, NOW(), 0, {?}, {?}, {?})',
+    XDB::execute('INSERT IGNORE INTO  register_pending (uid, forlife, bestalias, mailorg2, password,
+                                                        email, date, relance, naissance, hash, services)
+                              VALUES  ({?}, {?}, {?}, {?}, {?}, {?}, NOW(), 0, {?}, {?}, {?})',
                  $subState->i('uid'), $subState->s('forlife'), $subState->s('bestalias'),
                  $subState->s('emailXorg2'), $subState->s('password'), $subState->s('email'),
                  $subState->s('birthdate'), $hash, implode(',', $subState->v('services')));