]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/jackpot_functions.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / libs / jackpot_functions.php
index cc71ba6730669ebffa8508b023b073ccd10185da..b2e567049fd2773aeee6f26298f9b954f5c83329 100644 (file)
@@ -52,7 +52,7 @@ function getJackpotPoints () {
        $result = SQL_QUERY("SELECT `points` FROM `{?_MYSQL_PREFIX?}_jackpot` WHERE `ok`='ok' LIMIT 1", __FUNCTION__, __LINE__);
 
        // Do we have an entry?
-       if (SQL_NUMROWS($result) == '0') {
+       if (SQL_HASZERONUMS($result)) {
                // No, so create line
                SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
        } else {