]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-register.php
More SQLs rewritten fix_menu.php is now 'pool-ed'
[mailer.git] / inc / modules / guest / what-register.php
index 39cd91546eb6c1ef1e0d51f099c6487a9366f684..b53d0bdaedbb9d31c3163d716c566c41b02abd05 100644 (file)
@@ -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')) {