]> 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 3630a89c13918b2fafec7ee4cd9488f0abf466db..894b8cf2737d76de0b4f4e8fe86a1cfcbfaaf560 100644 (file)
@@ -40,9 +40,9 @@ 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', getConfig('sponsor_min_points'));