[SUCS Devel] [Git][sucssite/sucs-site][beta] 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:12:59 BST 2016
Imran Hussain pushed to branch beta at sucssite / sucs-site
Commits:
ce20e662 by Imran Hussain at 2016-10-13T14:14:38+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/ce20e662a2f9bcb5f463cd2cfa1c7cbd899eb675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20161013/5e34ce91/attachment.html>
More information about the Devel
mailing list