From 7238dab4a640c10905b773b3826f6c85bd6a5754 Mon Sep 17 00:00:00 2001
From: Imran Hussain <imranh@sucs.org>
Date: Thu, 13 Oct 2016 14:13:53 +0100
Subject: [PATCH] Don't need to check if they aren't in the singup table if we
 know they aren't in the members table

---
 components/susignup.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/susignup.php b/components/susignup.php
index 1e3393a..f33cdb4 100755
--- a/components/susignup.php
+++ b/components/susignup.php
@@ -52,7 +52,7 @@ if (!empty($_REQUEST['sid']) && !empty($_REQUEST['transactionID'])) {
             $smarty->assign("id", $signuptmpresult->fields["id"]);
             $smarty->assign("pass", $signuptmpresult->fields["password"]);
         // else if they aren't in the SUCS DB, then bootstrap signup process
-        } else if ($tmpresult->fields == false && $signuptmpresult->fields == false) {
+        } else if ($tmpresult->fields == false) {
             $mode = "form";
             $pass = make_password();
             $iddata = $sucsDB->Execute("insert into signup (password,sid,issuedby) values( ?, ?, ?) returning id", array($pass, $sid, "99999"));
-- 
GitLab