]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / modules / admin / what-config_bonus.php
index 84912169d5cc332df93dc0aaa7e708401fc47be0..8f0a376d8b14a1d1a239b13e519d54883a8d12d5 100644 (file)
@@ -61,10 +61,10 @@ if (isFormSent()) {
                if (!empty($rate)) $RATES[] = $rate;
        }
        REQUEST_SET_POST('turbo_rates', trim(implode(';', $RATES)));
-       REQUEST_UNSET_POST(('rate'));
+       REQUEST_UNSET_POST('rate');
 
        // Automatically calculate bonus points for ranks 2 and 3 when not set
-       if (!REQUEST_ISSET_POST(('turbo_rates'))) REQUEST_SET_POST('turbo_rates', "".round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4)."");
+       if (!REQUEST_ISSET_POST(('turbo_rates'))) REQUEST_SET_POST('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
 
        // Save data
        ADMIN_SAVE_SETTINGS_POST();
@@ -85,7 +85,7 @@ if (isFormSent()) {
        define('__TLINES_VALUE', getConfig('bonus_lines'));
 
        // Transfer options to template __MEMBER_SELECTION
-       define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('bonus_uid'), false, true, true, "bonus_uid"));
+       define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('bonus_uid'), false, true, true, 'bonus_uid'));
 
        // Initialize array for the points list
        //die("*".getConfig('turbo_rates')."*");