]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_bank_package.php
Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / modules / admin / what-add_bank_package.php
index ed4e351b2c606035eef898677677501a7a89460e..2a9c71d546458b49695014468165c236646d06c0 100644 (file)
@@ -41,9 +41,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR("admin", __FILE__);
 
 // Is the formular sent?
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Save the row to the database
-       ADMIN_SAVE_SETTINGS($_POST, "_bank_packages", "", array("account_fee", "interest_plus", "interest_minus", "first_payment"), true);
+       ADMIN_SAVE_SETTINGS(REQUEST_POST_ARRAY(), "_bank_packages", "", array("account_fee", "interest_plus", "interest_minus", "first_payment"), true);
 } else {
        // Display form
        LOAD_TEMPLATE("admin_add_bank_package");