From: Roland Häder Date: Thu, 28 Jul 2011 22:51:58 +0000 (+0000) Subject: Double % for sprintf() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2db306a4e4049ab759a10bb1e3c18d925d1583f9;p=mailer.git Double % for sprintf() --- diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 719f594bac..f4f35afea2 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -293,7 +293,7 @@ function doRegistration () { if (isExtensionInstalledAndNewer('theme', '0.0.8')) { // Okay, add design here $GLOBALS['register_sql_columns'] .= ', `curr_theme`'; - $GLOBALS['register_sql_data'] .= ", '{%pipe,getCurrentTheme%}'"; + $GLOBALS['register_sql_data'] .= ", '{%%pipe,getCurrentTheme%%}'"; } // END - if // Check if I shall disable sending mail to newly registered members out about active/begging rallye @@ -322,7 +322,7 @@ function doRegistration () { `{?_MYSQL_PREFIX?}_user_data` (`gender`,`surname`,`family`,`street_nr`,%s, `zip`,`city`,`email`,`birth_day`,`birth_month`,`birth_year`,`password`,`max_mails`,`receive_mails`,`refid`,`status`,`user_hash`,`REMOTE_ADDR`,`joined`,`last_update`,`ref_payout`".$GLOBALS['register_sql_columns'].") VALUES -('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','%s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")", +('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','{%%pipe,detectRemoteAddr%%}', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")", array( $countryRow, substr(postRequestParameter('gender'), 0, 1), @@ -340,8 +340,7 @@ function doRegistration () { bigintval(postRequestParameter('max_mails')), bigintval(postRequestParameter('max_mails')), makeZeroToNull(postRequestParameter('refid')), - $hash, - detectRemoteAddr(), + $hash ), __FUNCTION__, __LINE__); // Get his userid