More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / fix_filters.php
index b2762810fe45cc23589bcf2e72bb8a260d320cc3..f18079a787b0b6d5923b9e21edb8f90f6d7c3d48 100644 (file)
@@ -51,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