From eab3a4a557f8974b0b6169974eb9595e8de5ffa5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 30 Nov 2010 11:30:15 +0100 Subject: [PATCH] Prevents SQL error. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/register/register.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'))); -- 2.1.4