X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=e6d3f69dd59e756881d2773af51a09296378bfca;hb=a4fc56f660a422a080ff241bd86b772a5b5d0c53;hp=b132a993113c21336270e40a5bbba60179c03d83;hpb=f7f6e55ee0d90558ad773ce6168767c0af816696;p=mailer.git diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index b132a99311..e6d3f69dd5 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -74,7 +74,7 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) else { // Anything else so let's explode all entered rank points - $test = explode(";", $_CONFIG['bonus_ranks']); + $test = explode(";", $_CONFIG['turbo_rates']); if (!empty($test[$rank - 2])) { // Level found @@ -104,7 +104,7 @@ function BONUS_MAKE_RANK_ROWS($data, $type, $uid) $self = false; $OUT = ""; // How many ranks do we have? - $ranks = sizeof(explode(";", $_CONFIG['bonus_ranks'])) + 1; + $ranks = sizeof(explode(";", $_CONFIG['turbo_rates'])) + 1; // Load current user's data $result = SQL_QUERY_ESC("SELECT level, points, timemark FROM "._MYSQL_PREFIX."_bonus_turbo WHERE %s=%s AND userid=%s LIMIT 1", @@ -138,7 +138,7 @@ function BONUS_MAKE_RANK_ROWS($data, $type, $uid) for ($rank = 1; $rank <= $max; $rank++) { // Load data - $result_users = SQL_QUERY_ESC("SELECT userid, points, timemark FROM "._MYSQL_PREFIX."_bonus_turbo WHERE %s=%s AND level=%s LIMIT 1", + $result_users = SQL_QUERY_ESC("SELECT userid, points, timemark FROM "._MYSQL_PREFIX."_bonus_turbo WHERE %s=%s AND level='%s' LIMIT 1", array($type, $data, $rank), __FILE__, __LINE__); list($userid, $points, $mark) = SQL_FETCHROW($result_users);