From: Stéphane Jacob Date: Tue, 30 Nov 2010 10:30:15 +0000 (+0100) Subject: Prevents SQL error. X-Git-Tag: xorg/1.0.2~32^2~29 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=eab3a4a557f8974b0b6169974eb9595e8de5ffa5;p=platal.git Prevents SQL error. Signed-off-by: Stéphane Jacob --- diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php index de4eb8d..bf186a1 100644 --- a/modules/register/register.inc.php +++ b/modules/register/register.inc.php @@ -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')));