Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / libs / jackpot_functions.php
index c64026d0c4f59b29e870c31abb66eb0eef4001be..013ba16b4014b41b9e7b65d25010f49cffd83c17 100644 (file)
@@ -51,7 +51,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_NUMROWS($result) == '0') {
                // No, so create line
                SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
        } else {