]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_email.php
More fixes from bugtracker issues, thanks to profi-concept
[mailer.git] / inc / modules / admin / what-config_email.php
index dee05390c5f474732f5c182f924f6e4cfbc9dd66..674a428890253aa70188ddf54106e1c5e8872e0f 100644 (file)
@@ -50,16 +50,16 @@ if (isset($_POST['add_max'])) {
        if (SQL_NUMROWS($result) == 0) {
                // Add this value (including comment)
                SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_max_receive (value, comment) VALUES ('%s','%s')",
-                array(bigintval($_POST['max']), $_POST['comment']),__FILE__, __LINE__);
-               $content = "<SPAN class=\"admin_done\">".MAX_VALUE_SAVED."</SPAN>";
+                       array(bigintval($_POST['max']), $_POST['comment']),__FILE__, __LINE__);
+               $content = MAX_VALUE_SAVED;
        } else {
-               // Free memory
-               SQL_FREERESULT($result);
-
                // Value does alread exists!
                $content = "<SPAN class=\"admin_failed\">".MAX_VALUE_ALREADY."</SPAN>";
        }
 
+       // Free memory
+       SQL_FREERESULT($result);
+
        // Display message
        LOAD_TEMPLATE("admin_settings_saved", false, $content);
 } elseif ((isset($_POST['ok'])) && (isset($_GET['do']))) {