]> git.mxchange.org Git - mailer.git/blobdiff - inc/fix_filters.php
Moved doTemplateFooBar() down (to match with other include files)
[mailer.git] / inc / fix_filters.php
index 69cd4e001cfc68046c295fe673a607400343fb31..f18079a787b0b6d5923b9e21edb8f90f6d7c3d48 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -50,7 +51,7 @@ ORDER BY
        `filter_name` ASC, `filter_function` ASC', __FILE__, __LINE__);
 
 // Do we have entries? (we should have!)
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
        // Load row by row
        while ($filter = SQL_FETCHARRAY($result)) {
                // Now search again for this filter and get it's total count
@@ -65,7 +66,7 @@ if (SQL_NUMROWS($result) > 0) {
        } // END - while
 
        // Rebuild the cache
-       rebuildCacheFile('filter', 'filter');
+       rebuildCache('filter', 'filter');
 } // END - if
 
 // Free result