]> git.mxchange.org Git - mailer.git/blobdiff - inc/purge/purge-general.php
Updated copyright year.
[mailer.git] / inc / purge / purge-general.php
index a240140c73c8c92bf40b848f6235ddb7877fb066..a9865ecd8e4551abef2bc740803e5c9e8d1e7e93 100644 (file)
@@ -17,7 +17,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 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 @@ WHERE
        (UNIX_TIMESTAMP() - `timestamp_ordered`) >= {?auto_purge?}
 ORDER BY
        `userid` ASC', __FILE__, __LINE__);
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Start deleting procedure
                $userid = NULL;
                $points = '0';
@@ -112,14 +112,14 @@ ORDER BY
        if (isExtensionActive('bonus', TRUE)) {
                // Check for bonus campaigns
                $result = sqlQuery("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
-               if (!ifSqlHasZeroNums($result)) {
+               if (!ifSqlHasZeroNumRows($result)) {
                        // Start deleting procedure
                        $points = '0';
                        while ($content = sqlFetchArray($result)) {
                                // Check if confirmation links are purged or not
                                $result_links = sqlQueryEscaped("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s",
                                        array(bigintval($content['id'])), __FILE__, __LINE__);
-                               if (!ifSqlHasZeroNums($result_links)) {
+                               if (!ifSqlHasZeroNumRows($result_links)) {
                                        // At least one link was found, enougth to pay back the points
                                        $points += $content['points'] * sqlNumRows($result_links);