]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_sponsor.php
A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / modules / admin / what-add_sponsor.php
index 1f736068ee145ec0c44142d1f91e4af3bad44deb..894b8cf2737d76de0b4f4e8fe86a1cfcbfaaf560 100644 (file)
@@ -40,12 +40,12 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Save sponsor in database
-       SPONSOR_HANDLE_SPONSOR($_POST);
+       SPONSOR_HANDLE_SPONSOR(REQUEST_POST_ARRAY());
 } else {
        // Prepare constants for the template
-       define('__SPONSOR_MIN_VALUE', $_CONFIG['sponsor_min_points']);
+       define('__SPONSOR_MIN_VALUE', getConfig('sponsor_min_points'));
 
        // Output form
        LOAD_TEMPLATE("admin_add_sponsor");