X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=lead-confirm.php;h=9e4d790b94fdc5dd372663dd8b9a99c0d705be6c;hp=38b94017abcadec30aba8477298ed19afde95a9a;hb=a7c7b8307405aa270a38ce4e363c41b3d1c9c745;hpb=0fd6858b423d41e7eee9ffa3d5138d318e08cc1c diff --git a/lead-confirm.php b/lead-confirm.php index 38b94017ab..9e4d790b94 100644 --- a/lead-confirm.php +++ b/lead-confirm.php @@ -39,10 +39,8 @@ // Load security stuff here require('inc/libs/security_functions.php'); -// Init "action" and "what" +// Init start time $GLOBALS['startTime'] = microtime(true); -$GLOBALS['what'] = ''; -$GLOBALS['action'] = ''; // Set module $GLOBALS['module'] = 'lead-confirm'; @@ -74,7 +72,7 @@ $content = array( // Is the cookie set? if (isSessionVariableSet('lead_uid')) { // Is the user-account unlocked and valid? - $result = SQL_QUERY_ESC("SELECT email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s AND `status`='CONFIRMED' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `email` FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `userid`=%s AND `status`='CONFIRMED' LIMIT 1", array(bigintval(getSession('lead_uid'))), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Secure the ID number