]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/jackpot_functions.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / jackpot_functions.php
index c3c1c6ddcf3a9bc72bbc4d6180eefe8b0bda288b..abd678a98c078d5c4081584b4996778d619d7a89 100644 (file)
@@ -50,7 +50,7 @@ function getJackpotPoints () {
        $result = sqlQuery("SELECT `points` FROM `{?_MYSQL_PREFIX?}_jackpot` WHERE `ok`='ok' LIMIT 1", __FUNCTION__, __LINE__);
 
        // Is there an entry?
-       if (ifSqlHasZeroNums($result)) {
+       if (ifSqlHasZeroNumRows($result)) {
                // No, so create line
                sqlQuery("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
        } else {