Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-add_rallye.php
index cb17edd4f4ff3f08c9a4219597b3e768cd597037..4424423e8aaf2d5c83fbfda2ac2ef6f95751745e 100644 (file)
@@ -52,7 +52,7 @@ if (isFormSent()) {
        $result = sqlQueryEscaped("SELECT `id`, `admin_id` FROM `{?_MYSQL_PREFIX?}_rallye_data` WHERE (`start_time` <= %s AND `end_time` >= %s) OR (`start_time` >= %s AND `start_time` <= %s) LIMIT 1",
                array($START, $START, $START, $END), __FILE__, __LINE__);
 
-       if (ifSqlHasZeroNums($result)) {
+       if (ifSqlHasZeroNumRows($result)) {
                // Ok, start and end time did not overlap
                sqlQueryEscaped("INSERT INTO
        `{?_MYSQL_PREFIX?}_rallye_data`