]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Typo fixed
[mailer.git] / inc / libs / bonus_functions.php
index a4fdf06ce5903c6ba775d2f7df7c24758a7727c2..b137dc6c33140cf47ba462f9d7dbbaa5f00e2d36 100644 (file)
@@ -101,11 +101,11 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) {
        }
 
        // Add points to his account directly
-       $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET turbo_bonus=turbo_bonus+".$points." WHERE userid=%s LIMIT 1",
+       SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET turbo_bonus=turbo_bonus+".$points." WHERE userid=%s LIMIT 1",
                array(bigintval($uid)), __FILE__, __LINE__);
 
        // Rember this whole data for displaying ranking list
-       $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_bonus_turbo (userid, mail_id, bonus_id, level, points, timemark) VALUES ('%s', '%s', '%s', '%s', '%s', UNIX_TIMESTAMP())",
+       SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_bonus_turbo (userid, mail_id, bonus_id, level, points, timemark) VALUES ('%s', '%s', '%s', '%s', '%s', UNIX_TIMESTAMP())",
                array(bigintval($uid), bigintval($mail), bigintval($bonus), $rank, $points), __FILE__, __LINE__);
 
        if ((GET_EXT_VERSION("bonus") >= "0.3.5") && (getConfig('bonus_mode') != "ADD") && ($points > 0)) BONUS_POINTS_HANDLER($points);
@@ -199,7 +199,7 @@ function BONUS_POINTS_HANDLER ($MODE) {
                UPDATE_CONFIG(array('bonus_mode'), array("JACKPOT"));
 
                // Update configuration
-               getConfig('bonus_mode') = "JACKPOT";
+               $_CONFIG['bonus_mode'] = "JACKPOT";
        } // END - if
 
        if ($MODE == "login_bonus") {