]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor_pay.php
More constant rewrites
[mailer.git] / inc / modules / admin / what-list_sponsor_pay.php
index cd7a8e117e06dd15f5e89deda0fabd83cb4aaaa2..e9cb3ea77757620f6ac6d5d4f85142f37719c0eb 100644 (file)
@@ -52,12 +52,12 @@ if (REQUEST_ISSET_POST(('add'))) {
        if ((REQUEST_POST('pay_min_count') == 0) || (!REQUEST_ISSET_POST(('pay_min_count')))) REQUEST_UNSET_POST(('add'));
        if (!REQUEST_ISSET_POST(('pay_currency'))) REQUEST_UNSET_POST(('add'));
 
-} elseif ((REQUEST_ISSET_POST(('edit'))) || (REQUEST_ISSET_POST(('del'))) || (REQUEST_ISSET_POST(('change'))) || (REQUEST_ISSET_POST(('remove')))) {
+} elseif ((REQUEST_ISSET_POST('edit')) || (REQUEST_ISSET_POST('del')) || (REQUEST_ISSET_POST(('change'))) || (REQUEST_ISSET_POST(('remove')))) {
        // Check if at least one entry was selected
        if (!REQUEST_ISSET_POST(('id'))) {
                // Nothing selected for editing / deleting???
-               REQUEST_UNSET_POST(('edit'));
-               REQUEST_UNSET_POST(('del'));
+               REQUEST_UNSET_POST('edit');
+               REQUEST_UNSET_POST('del');
                REQUEST_UNSET_POST(('change'));
                REQUEST_UNSET_POST(('remove'));
        } elseif (REQUEST_ISSET_POST(('change'))) {
@@ -124,7 +124,7 @@ if (REQUEST_ISSET_POST(('add'))) {
 
        // Output message
        LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
-} elseif ((REQUEST_ISSET_POST(('edit'))) || (REQUEST_ISSET_POST(('del')))) {
+} elseif ((REQUEST_ISSET_POST('edit')) || (REQUEST_ISSET_POST('del'))) {
        // Load all data
        $OUT = ""; $SW = 2;
        foreach (REQUEST_POST('id') as $id => $sel) {
@@ -146,7 +146,7 @@ if (REQUEST_ISSET_POST(('add'))) {
                                'curr' => htmlspecialchars($curr)
                        );
 
-                       if (REQUEST_ISSET_POST(('edit'))) {
+                       if (REQUEST_ISSET_POST('edit')) {
                                // Edit entry
                                $OUT .= LOAD_TEMPLATE("admin_list_sponsor_pay_edit_row", true, $content);
                        } else {
@@ -166,7 +166,7 @@ if (REQUEST_ISSET_POST(('add'))) {
        define('__SPONSOR_ROWS', $OUT);
 
        // Load main template depending on mode (edit/delete)
-       if (REQUEST_ISSET_POST(('edit'))) {
+       if (REQUEST_ISSET_POST('edit')) {
                // Load main edit template
                LOAD_TEMPLATE("admin_list_sponsor_pay_edit");
        } else {