X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=2c67f0258c40fed48b49f5d73eded169b248bb5a;hb=f1cd2b7ae65e988f5be106f415136aaf92d60538;hp=63fcbeecc06c94dc049a46b59d35ff1f26f9182f;hpb=3c50057c4da8c632d1923d7879a2b870d1eb7155;p=mailer.git diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index 63fcbeecc0..2c67f0258c 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Replace german decimal comma with computer decimal dot convertCommaToDotInPostDataArray(array('login_bonus', 'turbo_bonus', 'bonus_ref', 'bonus_order', 'bonus_notify_points')); @@ -63,7 +63,7 @@ if (isFormSent()) { // Automatically calculate bonus points for ranks 2 and 3 when not set if (!isPostRequestElementSet('turbo_rates')) { - setPostRequestElement('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).''); + setPostRequestElement('turbo_rates', ''.round(getTurboBonus() / 2).';'.round(getTurboBonus() / 4).''); } // END - if // Save data @@ -81,7 +81,7 @@ if (isFormSent()) { $RANKS = explode(';', getTurboRates()); // Automatically calculate bonus points for ranks 2 and 3 when not set - if (getTurboRates() == '') $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4)); + if (getTurboRates() == '') $RANKS = array(round(getTurboBonus() / 2), round(getTurboBonus() / 4)); // Generate list $OUT = '
    ';