]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-repair_cats.php
New wrapper functions introduced
[mailer.git] / inc / modules / admin / what-repair_cats.php
index 898ac79c6408266faddbb8490c228299a9aaee4a..32b6e415d3a9ab0c521034c668d7d7df2bde1f5c 100644 (file)
@@ -8,7 +8,7 @@
  * -------------------------------------------------------------------- *
  * Short description : Repairs category selections                      *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Repariert Kategorieauswahlen                     *
+ * Kurzbeschreibung  : Repariert Kategorien                             *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -47,7 +47,7 @@ addMenuDescription('admin', __FILE__);
 
 // Go through all categories
 $result = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__);
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
         // Nothing is removed for now... ;-)
        $REMOVED = '0';
 
@@ -71,7 +71,7 @@ if (SQL_NUMROWS($result) > 0) {
        }
 } else {
        // No category selections found, no members registered?
-       $content = '<div class="admin_failed">{--ADMIN_REPAIR_CATS_NOTHING--}</div>';
+       $content = '<div class="admin_failed">{--ADMIN_REPAIR_CATEGORIES_NOTHING--}</div>';
 }
 
 // Load template