X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_reg.php;h=3e9247743bff3350e408db3b07d25607b9e81e85;hp=35fdaeec1ecdf38055899796bcaf605f7a009f1c;hb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e diff --git a/inc/modules/guest/what-sponsor_reg.php b/inc/modules/guest/what-sponsor_reg.php index 35fdaeec1e..3e9247743b 100644 --- a/inc/modules/guest/what-sponsor_reg.php +++ b/inc/modules/guest/what-sponsor_reg.php @@ -227,11 +227,11 @@ WHERE `id`='%s' LIMIT 1", // Check the status of the registration process switch ($STATUS) { case 'added': // Sponsor successfully added with account status = UNCONFIRMED! - // Check for his ID number + // Check for his id number $result = SQL_QUERY_ESC("SELECT `id`, `hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1", array(postRequestElement('email')), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { - // ID found so let's load it for the confirmation email + // id found so let's load it for the confirmation email list($id, $hash) = SQL_FETCHROW($result); // Prepare data for the email template @@ -241,7 +241,7 @@ WHERE `id`='%s' LIMIT 1", $content['surname'] = secureString(postRequestElement('surname')); $content['family'] = secureString(postRequestElement('family')); $content['gender'] = translateGender(postRequestElement('gender')); - $content['timestamp'] = generateDateTime(time(), '0'); + $content['timestamp'] = generateDateTime(time(), 0); $content['password'] = secureString(postRequestElement('pass1')); // Generate email and send it to the new sponsor @@ -347,11 +347,11 @@ ORDER BY `pay_name`", __FILE__, __LINE__); // Prepare referal things if (isGetRequestElementSet('refid')) { - // Referal ID transmitted, we don't care here if it is right or not + // Referal id transmitted, we don't care here if it is right or not $content['refid'] = bigintval(getRequestElement('refid')); } else { // No referal link - $content['refid'] = '0'; + $content['refid'] = 0; } // Display registration form