X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffix_filters.php;h=f18079a787b0b6d5923b9e21edb8f90f6d7c3d48;hb=8ec82aa8ce39be68e4087a26f9763b86fc124ed4;hp=69cd4e001cfc68046c295fe673a607400343fb31;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/fix_filters.php b/inc/fix_filters.php index 69cd4e001c..f18079a787 100644 --- a/inc/fix_filters.php +++ b/inc/fix_filters.php @@ -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