Several minor rewrites, getter GET_JACKPOT_POINTS() added
[mailer.git] / inc / libs / doubler_functions.php
index 78464b4f93a8984fd89044d02588ec6000e3854b..27c33d2582e679feee938c337aeb5fda5fecafcf 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;
        }