fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index c78f24e4ad0b20d9dbd2d3da63247f2aa22d4e47..e6924acb4f7d52700ac23069cd1f19d39b83f1de 100644 (file)
@@ -47,9 +47,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),