]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mods.php
merge_array() call fixed
[mailer.git] / inc / modules / admin / what-config_mods.php
index 354fa37f7cead5c527ae6078ab59b1d68659cfd9..5f6040be70e615f4bacaa818c18db0da209ade22 100644 (file)
@@ -53,7 +53,7 @@ if (isFormSent('edit')) {
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Load module data
                        // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
-                       $result = SQL_QUERY_ESC("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`module`,`title`,`locked`,`hidden`,`admin_only`,`mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
 
                        // Load data
@@ -80,9 +80,9 @@ if (isFormSent('edit')) {
 
                // Remove maybe confusing data
                unsetPostRequestParameter('edit');
-               unsetPostRequestParameter('change');
+               unsetPostRequestParameter('do_edit');
        }
-} elseif (isFormSent('change')) {
+} elseif (isFormSent('do_edit')) {
        // Init SQLs
        initSqls();
 
@@ -118,7 +118,7 @@ if (isFormSent('edit')) {
 if (!ifPostContainsSelections()) {
        // 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`
+       `id`,`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
 ORDER BY