From 288aca61a0e72fef9874d017992bbdcabfbae67b Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 13 Aug 2012 14:27:14 +0200 Subject: [PATCH] Adds TODOs to fix homonym robot. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/admin/homonyms.inc.php | 1 + modules/register/register.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/admin/homonyms.inc.php b/modules/admin/homonyms.inc.php index 8b76fcd..91933c0 100644 --- a/modules/admin/homonyms.inc.php +++ b/modules/admin/homonyms.inc.php @@ -94,6 +94,7 @@ function fix_homonym(PlUser $user, $email) $email); $hrmid = User::makeHomonymHrmid($email); + // TODO: insert twice into source_other if different domains XDB::execute('INSERT INTO email_source_other (hrmid, email, domain, type, expire) SELECT {?}, {?}, id, \'homonym\', NOW() FROM email_virtual_domains diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php index ca1c823..daacf51 100644 --- a/modules/register/register.inc.php +++ b/modules/register/register.inc.php @@ -200,6 +200,7 @@ function createAliases($subState) XDB::execute('INSERT IGNORE INTO homonyms_list (hrmid, uid) VALUES ({?}, {?})', $hrmid, $subState->i('uid')); + // TODO: insert into source_other if new domain } $subState->set('forlife', $forlife); -- 2.1.4