]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_cats.php
Typo fixed :-(
[mailer.git] / inc / modules / admin / what-config_cats.php
index 393d94333eb41899873fbf8aec64494cf27abd2d..59fadde8d521b4348282e05cc1989696a44ee877 100644 (file)
@@ -111,7 +111,7 @@ if (isFormSent('add')) {
                // Display message
                loadTemplate('admin_settings_saved', false, $TEXT);
        } // END - if
-} elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('del')) && (ifPostContainsSelections())) {
        // Delete categories
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
@@ -135,7 +135,7 @@ if (isFormSent('add')) {
 
        // Load main template
        loadTemplate('admin_del_cats', false, $OUT);
-} elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('edit')) && (ifPostContainsSelections())) {
        // Edit categories
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
@@ -165,7 +165,7 @@ if (isFormSent('add')) {
 
        // Load all categories
        $result = SQL_QUERY("SELECT `id`, `cat`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // Init variables
                $OUT = '';