]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/jackpot_functions.php
Extension ext-surfbar continued:
[mailer.git] / inc / libs / jackpot_functions.php
index 20be2a86b6bc5742acb33e1baf0eaa49b6b20752..1ab1efed809f2c4cec66716143cd2fb31bdb42e8 100644 (file)
@@ -49,10 +49,10 @@ function getJackpotPoints () {
        // Read them
        $result = SQL_QUERY("SELECT `points` FROM `{?_MYSQL_PREFIX?}_jackpot` WHERE `ok`='ok' LIMIT 1", __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_HASZERONUMS($result)) {
                // No, so create line
-               SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`,`points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
+               SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
        } else {
                // Read the line
                $data = SQL_FETCHARRAY($result);
@@ -78,7 +78,7 @@ function addPointsToJackpot ($points) {
 // Subtracts points from the jackpot
 function subtractPointsFromJackpot ($points) {
        // First failed
-       $ret = false;
+       $ret = FALSE;
 
        // Get jackpot points for dummy
        $jackpot = getJackpotPoints();