From 02673a18a3a05f1633d300d2b1a52018299f8a7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 28 Oct 2011 10:27:41 +0200 Subject: [PATCH] Fixes contact addition on registration. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/register.php b/modules/register.php index fd9bdd3..990dee8 100644 --- a/modules/register.php +++ b/modules/register.php @@ -461,9 +461,9 @@ class RegisterModule extends PLModule // Notify other users which were watching for her arrival. XDB::execute('INSERT INTO contacts (uid, contact) - SELECT uid, ni_id + SELECT uid, {?} FROM watch_nonins - WHERE ni_id = {?}', $uid); + WHERE ni_id = {?}', $pid, $uid); XDB::execute('DELETE FROM watch_nonins WHERE ni_id = {?}', $uid); Platal::session()->updateNbNotifs(); -- 2.1.4