Several minor rewrites, getter GET_JACKPOT_POINTS() added
[mailer.git] / inc / libs / doubler_functions.php
index 78464b4..27c33d2 100644 (file)
@@ -128,9 +128,7 @@ function DOUBLER_GET_TOTAL_POINTS_LEFT() {
 
        if (getConfig('doubler_jackpot') == 'Y') {
                // Load jackpot
-               $result = SQL_QUERY("SELECT points FROM `{!_MYSQL_PREFIX!}_jackpot` WHERE ok='ok' LIMIT 1", __FUNCTION__, __LINE__);
-               list($jackpot) = SQL_FETCHROW($result);
-               SQL_FREERESULT($result);
+               $jackpot = GET_JACKPOT_POINTS();
 
                if (!empty($jackpot)) $points += $jackpot;
        }