X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-register.php;h=b53d0bdaedbb9d31c3163d716c566c41b02abd05;hb=5e4fd904c6045b66540a4e8fd77bf4f2f04537eb;hp=cbd1d658eda07588e1ec316f8434eb6d3b052292;hpb=7a7db10234f046013733352d52fa49fe63891b2a;p=mailer.git diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index cbd1d658ed..b53d0bdaed 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -180,8 +180,8 @@ LIMIT 1", //* DEBUG: */ print intval(isFormSent()).'/'.intval($isOkay).'/'.intval(isAdmin()).'
'; if ((isFormSent()) && (($isOkay === true) || (isAdmin()))) { // Prepapre month and day of birth - if (strlen(postRequestElement('day')) == 1) setRequestPostElement('day' , '0'.postRequestElement('day')); - if (strlen(postRequestElement('month')) == 1) setRequestPostElement('month', '0'.postRequestElement('month')); + if (strlen(postRequestElement('day')) == 1) setRequestPostElement('day' , 0 . postRequestElement('day')); + if (strlen(postRequestElement('month')) == 1) setRequestPostElement('month', 0 . postRequestElement('month')); // Get total ... // ... confirmed, ... @@ -290,8 +290,8 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF if (getConfig('ref_payout') > 0) $locked = 'locked_points'; // @TODO Rewrite this to addPointsDirectly() - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `".$locked."`) VALUES (%s,0,'%s')", - array(bigintval($userid), getConfig('points_register')), __FILE__, __LINE__); + SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `".$locked."`) VALUES (%s,0,'{?points_register?}')", + array(bigintval($userid)), __FILE__, __LINE__); // Update mediadata as well if ((getExtensionVersion('mediadata') >= '0.0.4') && ($locked == 'points')) { @@ -315,7 +315,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF $gender = translateGender(postRequestElement('gender')); // ... rewrite a zero referal ID to the main title - if (postRequestElement('refid') == '0') setRequestPostElement('refid', getConfig('MAIN_TITLE')); + if (postRequestElement('refid') == 0) setRequestPostElement('refid', getConfig('MAIN_TITLE')); // Is ZIP code set? if (isPostRequestElementSet('zip')) {