]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_sponsor.php
A lot fixes to templates and missing functions added, more rewrites
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index a4c552c97c0e0a71d63f67082dab01ac06a14177..9867936bb89ab294879bf35df5794dae8ba52cb5 100644 (file)
@@ -41,11 +41,11 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR("admin", __FILE__);
 
 // Check if admin has submitted form
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Does he have selected at least one sponsor?
-       if (SELECTION_COUNT($_POST['id']) > 0) {
+       if (SELECTION_COUNT(REQUEST_POST('id')) > 0) {
                // At least one entry selected
-               foreach ($_POST['id'] as $id => $sel) {
+               foreach (REQUEST_POST('id') as $id => $sel) {
                        // Secure ID number
                        $id = bigintval($id);