]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_email_max_rec.php
Extension ext-network continued:
[mailer.git] / inc / modules / admin / what-list_email_max_rec.php
index 2b689d84d9f258a4c4eca1d6207c6860a6e2b3c8..cae2ae147525eaefa834ec6da4376f9b89856df1 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -59,7 +59,7 @@ if (isPostRequestElementSet('add_max')) {
                $content = '{--ADMIN_MAX_VALUE_SAVED--}';
        } else {
                // Value does alread exists!
-               $content = '<span class="notice">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
+               $content = '<span class="bad">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
        }
 
        // Free memory
@@ -74,7 +74,7 @@ if (isPostRequestElementSet('add_max')) {
                // Secure id
                $id = bigintval($id);
 
-               switch (postRequestElement('do')) {
+               switch (getRequestElement('do')) {
                        case 'edit': // Change entries
                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_max_receive` SET value='%s', comment='%s' WHERE `id`=%s LIMIT 1",
                                array(
@@ -90,8 +90,8 @@ if (isPostRequestElementSet('add_max')) {
                                        array($id), __FILE__, __LINE__);
                                $TEXT = '{--ADMIN_MAX_RECEIVE_DELETED--}';
                                break;
-               }
-       }
+               } // END - switch
+       } /// END - foreach
 
        if (isset($TEXT)) {
                // Display message