Code style changed, ext-user continued:
[mailer.git] / inc / purge / purge-general.php
index f3ab83bd2d7124f637d2be0121e2d5c8ee95397c..fa5cf3f0569ee48472f5690a4759e9089becabc9 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
        die();
 } elseif ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
        // Abort here
-       return false;
+       return FALSE;
 }
 
 if (getAutoPurge() > 0) {
@@ -88,11 +88,11 @@ ORDER BY
 
                                // Remove confirmation links from queue
                                addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s",
-                                       array(bigintval($content['id'])), __FILE__, __LINE__, false));
+                                       array(bigintval($content['id'])), __FILE__, __LINE__, FALSE));
 
                                // Update status of order
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1",
-                                       array(bigintval($content['pool_id'])), __FILE__, __LINE__, false));
+                                       array(bigintval($content['pool_id'])), __FILE__, __LINE__, FALSE));
                        } // END - if
                } // END - while
 
@@ -104,7 +104,7 @@ ORDER BY
        SQL_FREERESULT($result);
 
        // Is the 'bonus' extension installed and activated?
-       if (isExtensionActive('bonus', true)) {
+       if (isExtensionActive('bonus', TRUE)) {
                // Check for bonus campaigns
                $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
@@ -123,11 +123,11 @@ ORDER BY
 
                                        // Remove confirmation links from queue
                                        addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s",
-                                               array(bigintval($content['id'])), __FILE__, __LINE__, false));
+                                               array(bigintval($content['id'])), __FILE__, __LINE__, FALSE));
 
                                        // Update status of order
                                        addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1",
-                                               array(bigintval($content['id'])), __FILE__, __LINE__, false));
+                                               array(bigintval($content['id'])), __FILE__, __LINE__, FALSE));
                                } // END - if
                        } // END - while