]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_sponsor.php
More complete rewrite to use wrapper function isExtensionInstalledAndNewer(), some...
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index e66a2211af825141166301fb672ca3276d037ff1..280246d77615a2d012eb2a571fde8238210c22b2 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -47,9 +48,9 @@ addMenuDescription('admin', __FILE__);
 // Check if admin has submitted form
 if (isFormSent()) {
        // Does he have selected at least one sponsor?
-       if (countSelection(postRequestElement('id')) > 0) {
+       if (countSelection(postRequestParameter('id')) > 0) {
                // At least one entry selected
-               foreach (postRequestElement('id') as $id => $selected) {
+               foreach (postRequestParameter('id') as $id => $selected) {
                        // Secure id number and init $content
                        $content = array(
                                'id'    => bigintval($id),
@@ -91,7 +92,7 @@ ORDER BY sp.pay_name",
                                                // Transfer data to array
                                                $data = array(
                                                        'admin_id'   => $content['email'],
-                                                       'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'],
+                                                       'order' => ($content['pay_count'] * $content['pay_rate']) . ' ' . $content['pay_currency'],
                                                        'stamp' => generateDateTime($content['pay_ordered'], 2),
                                                        'pname' => $content['pay_name'],
                                                );