From 70b2e96f6eba40d03178bc35c48bdbfb92e4cf1e Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 22 Jul 2016 19:17:35 -0700 Subject: [PATCH] Fix for when a user registers but clicks the activation link twice. --- signup.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/signup.php b/signup.php index d3775c6c3..5d550ebd3 100644 --- a/signup.php +++ b/signup.php @@ -425,6 +425,14 @@ class signup include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE); } + // When user clicks twice on the email activation link or admin manually activated the account already. + if($sql->select("user", "user_id", "user_id = ".intval($qs[1])." AND user_ban = 0 AND user_sess='' " ) ) //TODO XXX check within last 24 hours only? + { + $text = "
".LAN_SIGNUP_41."
"; + $ns->tablerender(LAN_SIGNUP_75, $text); + return true; + } + e107::getCache()->clear("online_menu_totals");