]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-maintenance.php
Fix for 'Other Settings' which won't save
[mailer.git] / inc / modules / admin / what-maintenance.php
index 2935c413632f4119ff9ab058a0082306ec0a4ffa..923926c45bde493a59699ce1a426899b0f077183 100644 (file)
@@ -37,6 +37,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
@@ -57,7 +58,7 @@ if (isset($_POST['ok']))
        }
 
        // Update config
-       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET maintenance='%s' WHERE config='0' LIMIT 1",
+       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET maintenance='%s' WHERE config=0 LIMIT 1",
         array($target_mode), __FILE__, __LINE__);
 
        // Load template