X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=e7b44c3eb760618595d46870db939f14e5482d56;hb=c5173c4d66be7ec72fbf8051a2097cbb377e87a0;hp=406cefa1bde07018b6510e02a7e7542466f00118;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git
diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php
index 406cefa1bd..e7b44c3eb7 100644
--- a/inc/modules/admin/what-config_bonus.php
+++ b/inc/modules/admin/what-config_bonus.php
@@ -1,7 +1,7 @@
\n";
- $cnt = 0;
+ $OUT = '
';
+ $count = '0';
foreach ($RANKS as $k => $rate) {
- if (!empty($rate)) {
+ if (!empty($rate)) {
// Print only when something is in
- $OUT .= " -
({?POINTS?})
\n";
+ $OUT .= ' -
({?POINTS?})
';
} // END - if
- $cnt++;
+ $count++;
} // END - foreach
// Maxmium entries
$max = 10;
- if ($cnt >= 8) $max = $cnt+3;
+ if ($count >= 8) $max = $count+3;
// Add more empty fields
- for ($i = $cnt; $i < $max; $i++) {
- $OUT .= " -
({?POINTS?})
\n";
+ for ($i = $count; $i < $max; $i++) {
+ $OUT .= ' -
({?POINTS?})
';
} // END - for
- $OUT .= "
\n";
+ $OUT .= '';
$content['trates_list'] = $OUT;
// Selection boxes
@@ -119,7 +109,7 @@ if (isFormSent()) {
$content['wait_selection'] = createTimeSelections(getConfig('bonus_notify_wait'), 'bonus_notify_wait', 'ms' );
// Init Y/N selections
- foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','en_notify','di_notify','new_mem_notify','include_own') as $entry) {
+ foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) {
$content[$entry . '_y'] = '';
$content[$entry . '_n'] = '';
$content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"';