X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-register.php;h=b53d0bdaedbb9d31c3163d716c566c41b02abd05;hb=5e4fd904c6045b66540a4e8fd77bf4f2f04537eb;hp=39cd91546eb6c1ef1e0d51f099c6487a9366f684;hpb=dbb6aa4eaeff7c3bab27f143d881781380d43d41;p=mailer.git diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index 39cd91546e..b53d0bdaed 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -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')) {