]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
Naming convention applied: is outdated, use (not shortended word), fixed missing...
[mailer.git] / inc / modules / member / what-categories.php
index 134384b40e8a5821c19dba103775e237897a01c4..debdd3bcede01b51dcd2225e9df5205479fe0074 100644 (file)
@@ -55,12 +55,12 @@ $result = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats`".$whereSta
 if (SQL_NUMROWS($result) > 0) {
        $LEAST = false;
        if (isFormSent()) {
-               $cnt = '0';
+               $count = '0';
                foreach (postRequestParameter('cat') as $cat => $joined) {
-                       if ($joined != 'Y') $cnt++;
+                       if ($joined != 'Y') $count++;
                } // END - foreach
 
-               if ((SQL_NUMROWS($result) - $cnt) < getConfig('least_cats')) {
+               if ((SQL_NUMROWS($result) - $count) < getConfig('least_cats')) {
                        unsetPostRequestParameter('ok');
                        $LEAST = true;
                } // END - if
@@ -69,7 +69,7 @@ if (SQL_NUMROWS($result) > 0) {
        // Is the form sent?
        if (isFormSent()) {
                // Start counting all
-               $cnt = '0';
+               $count = '0';
 
                // Go through all entries
                foreach (postRequestParameter('cat') as $cat => $joined) {
@@ -100,12 +100,12 @@ if (SQL_NUMROWS($result) > 0) {
                                SQL_QUERY_ESC(trim($sql), array(getMemberId(), bigintval($cat)), __FILE__, __LINE__);
 
                                // Count this row
-                               $cnt += SQL_AFFECTEDROWS();
+                               $count += SQL_AFFECTEDROWS();
                        } // END - if
                } // END - foreach
 
                // Categories saved?
-               if ($cnt > 0) {
+               if ($count > 0) {
                        // Output message
                        loadTemplate('admin_settings_saved', false, '{--MEMBER_CATEGORIES_SAVED--}');
                } else {