]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mods.php
Fixes for 'empty version'
[mailer.git] / inc / modules / admin / what-config_mods.php
index d6ea507d027378b9d7b2a2d41597f7582f5d7a85..453ee27b54248aaa8dd7bf6ea17ba9acb5b281b4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 08/27/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 08/27/2004 *
  * ================                             Last change: 08/27/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -44,11 +44,9 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
-$SEL = 0;
 if (isPostRequestElementSet('edit')) {
        // Check if at least one module is selected
-       $SEL = countPostSelection();
-       if ($SEL > 0) {
+       if (countPostSelection() > 0) {
                // Output header
                $OUT = ''; $SW = 2;
 
@@ -119,7 +117,7 @@ if (isPostRequestElementSet('edit')) {
        loadTemplate('admin_settings_saved', false, getMessage('MODS_CHANGED'));
 }
 
-if ($SEL == 0) {
+if (countPostSelection() == '0') {
        // Load module data (We do not need to check if there's at least one...)
        $result = SQL_QUERY('SELECT id, module, locked, hidden, admin_only, title, mem_only
 FROM `{?_MYSQL_PREFIX?}_mod_reg`