]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-primera.php
Some fixes for surfbar extension (#123), double->single, misc cleanups/fixes
[mailer.git] / inc / modules / member / what-primera.php
index 7cc98acb71a6f46b791335a32508740a72fab479..deff292584e75a051cb4a1792b2644108892267f 100644 (file)
@@ -63,7 +63,7 @@ if ((getConfig('primera_api_name') == '') || (getConfig('primera_api_md5') == ''
 $content = array(); $points = false;
 
 // Is the mode set (payout only)
 $content = array(); $points = false;
 
 // Is the mode set (payout only)
-if (!REQUEST_ISSET_GET(('mode'))) {
+if (!REQUEST_ISSET_GET('mode')) {
        // Get referal id
        $content['refid'] = getConfig(('primera_refid'));
 
        // Get referal id
        $content['refid'] = getConfig(('primera_refid'));
 
@@ -81,7 +81,7 @@ if (!REQUEST_ISSET_GET(('mode'))) {
        SQL_FREERESULT($result);
 
        // Is there an ID?
        SQL_FREERESULT($result);
 
        // Is there an ID?
-       if ((!empty($content['primera_nickname'])) && (!REQUEST_ISSET_GET(('mode')))) {
+       if ((!empty($content['primera_nickname'])) && (!REQUEST_ISSET_GET('mode'))) {
                // Then use an other "mode"
                REQUEST_SET_GET('mode', "list");
 
                // Then use an other "mode"
                REQUEST_SET_GET('mode', "list");
 
@@ -151,12 +151,12 @@ if (REQUEST_GET('mode') == "pay") {
        SQL_FREERESULT($result);
 } else {
        // Invalid mode!
        SQL_FREERESULT($result);
 } else {
        // Invalid mode!
-       LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET(('mode'))));
+       LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET('mode')));
        return;
 }
 
 // Is the formular sent?
        return;
 }
 
 // Is the formular sent?
-if ((isFormSent()) && (REQUEST_ISSET_GET(('mode')))) {
+if ((isFormSent()) && (REQUEST_ISSET_GET('mode'))) {
        // Check input data depending on the mode and execute the requested mode
        switch (REQUEST_GET('mode')) {
                case "pay": // Payout this exchange -> Primus
        // Check input data depending on the mode and execute the requested mode
        switch (REQUEST_GET('mode')) {
                case "pay": // Payout this exchange -> Primus
@@ -214,13 +214,13 @@ if ((isFormSent()) && (REQUEST_ISSET_GET(('mode')))) {
 
                default: // Invalid mode!
                        DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", REQUEST_GET('mode')));
 
                default: // Invalid mode!
                        DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", REQUEST_GET('mode')));
-                       LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET(('mode'))));
+                       LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET('mode')));
                        return;
        }
 } // END - if
 
 // Prepare mode for template name
                        return;
        }
 } // END - if
 
 // Prepare mode for template name
-$mode = sprintf("member_primera_mode_%s", REQUEST_GET(('mode')));
+$mode = sprintf("member_primera_mode_%s", REQUEST_GET('mode'));
 
 // Load the template
 LOAD_TEMPLATE($mode, false, $content);
 
 // Load the template
 LOAD_TEMPLATE($mode, false, $content);