[SUCS Devel] [Git][sucssite/sucs-site][master] Don't need to check if they aren't in the singup table if we know they aren't in the members table
Imran Hussain
imranh at sucs.org
Thu Oct 13 14:13:02 BST 2016
Imran Hussain pushed to branch master at sucssite / sucs-site
Commits:
7238dab4 by Imran Hussain at 2016-10-13T14:13:53+01:00
Don't need to check if they aren't in the singup table if we know they aren't in the members table
- - - - -
1 changed file:
- components/susignup.php
Changes:
=====================================
components/susignup.php
=====================================
--- 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"));
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/7238dab4a640c10905b773b3826f6c85bd6a5754
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20161013/56dfee77/attachment-0001.html>
More information about the Devel
mailing list