Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / purge / purge-mails.php
index 97716c2df331236723393d7c03a80a79a0ea4924..60a9651eca4165cc580cd24d06c4fd19d2de4df1 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -61,7 +61,7 @@ ORDER BY
 $deletedStats = '0';
 
 // Is there "purged" mails?
-if (!ifSqlHasZeroNums($result_mails)) {
+if (!ifSqlHasZeroNumRows($result_mails)) {
        // Okay, check for their sender's
        while ($content = sqlFetchArray($result_mails)) {
                // Check now...
@@ -90,7 +90,7 @@ ORDER BY
        `userid` ASC", __FILE__, __LINE__);
 
 // Is there "purged" mails?
-if (!ifSqlHasZeroNums($result_mails)) {
+if (!ifSqlHasZeroNumRows($result_mails)) {
        // Okay, check for their sender's
        while ($content = sqlFetchArray($result_mails)) {
                // Check now...