]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/jackpot_functions.php
Fixes/rewrites for content-type
[mailer.git] / inc / libs / jackpot_functions.php
index 55cbbb96bc970281b84f3d58663ba1aa23602fbd..fda58af1b5801eb93d03fd957e43d9048f837eda 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 // Getter for jackpot points
 function getJackpotPoints () {
        // Default is zero
-       $jackpot = '0.00000';
+       $data['points'] = '0.00000';
 
        // Read them
        $result = SQL_QUERY("SELECT `points` FROM `{?_MYSQL_PREFIX?}_jackpot` WHERE `ok`='ok' LIMIT 1", __FUNCTION__, __LINE__);
@@ -56,14 +56,14 @@ function getJackpotPoints () {
                SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
        } else {
                // Read the line
-               list($jackpot) = SQL_FETCHROW($result);
+               $data = SQL_FETCHARRAY($result);
        }
 
        // Free result
        SQL_FREERESULT($result);
 
        // Return them
-       return $jackpot;
+       return $data['points'];
 }
 
 // Adds points to the jackpot