]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/rallye_filter.php
Disallow subtraction on unsigned columns:
[mailer.git] / inc / filter / rallye_filter.php
index 2e9e84c33b3d4e34a16ea105152a0d05ee3e08d3..507a35e8356a22277d82704738202799ca4c3fad 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -63,7 +63,7 @@ function FILTER_RALLYE_NOTIFY_USERS ($filterData) {
                ));
 
                // Check for new started but not notified rallyes
-               $result = SQL_QUERY("SELECT SQL_SMALL_RESULT
+               $result = sqlQuery("SELECT SQL_SMALL_RESULT
        `d`.`id`,
        `d`.`title`,
        `d`.`start_time`,
@@ -79,16 +79,16 @@ WHERE
        `d`.`start_time` <= UNIX_TIMESTAMP() AND
        `d`.`end_time` > UNIX_TIMESTAMP()
 LIMIT 1", __FILE__, __LINE__);
-               if (SQL_NUMROWS($result) == 1) {
+               if (sqlNumRows($result) == 1) {
                        // Start rallye
                        autostartReferralRallyes($result);
                } // END - if
 
                // Free memory
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
 
                // Check for expired rallyes
-               $result = SQL_QUERY("SELECT SQL_SMALL_RESULT
+               $result = sqlQuery("SELECT SQL_SMALL_RESULT
        `d`.`id`,
        `d`.`title`,
        `d`.`start_time`,
@@ -103,13 +103,13 @@ WHERE
        `d`.`expired`='N' AND
        (`d`.`end_time` <= UNIX_TIMESTAMP()" . $sqlAddons['or'] . ")
 LIMIT 1", __FILE__, __LINE__);
-               if ((SQL_NUMROWS($result) == 1) && (isExtensionActive('autopurge'))) {
+               if ((sqlNumRows($result) == 1) && (isExtensionActive('autopurge'))) {
                        // End rallye here...
                        stopRallyeByResult($result);
                } // END - if
 
                // Free memory
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
        } // END - if
 
        // Return data