]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
Project continued:
[mailer.git] / inc / modules / admin / what-config_bonus.php
index 0bc5676d6a78211c49bfb4e24f246f8886b639c4..63fcbeecc06c94dc049a46b59d35ff1f26f9182f 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -51,8 +51,12 @@ if (isFormSent()) {
        setPostRequestElement('turbo_rates', '');
        $RATES = array();
        foreach (postRequestElement('rate') as $rate) {
+               // Convert German comma to dot
                $rate = trim(convertCommaToDot($rate));
-               if (!empty($rate)) $RATES[] = $rate;
+
+               if (!empty($rate)) {
+                       array_push($RATES, $rate);
+               } // END - if
        } // END - foreach
        setPostRequestElement('turbo_rates', trim(implode(';', $RATES)));
        unsetPostRequestElement('rate');
@@ -71,7 +75,7 @@ if (isFormSent()) {
        setConfigEntry('bonus_disable_notify', postRequestElement('bonus_disable_notify'));
 } else {
        // Transfer options to template
-       $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), false, true, true, 'bonus_userid');
+       $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), FALSE, TRUE, TRUE, 'bonus_userid');
 
        // Initialize array for the points list
        $RANKS = explode(';', getTurboRates());
@@ -107,7 +111,7 @@ if (isFormSent()) {
        $content['wait_selection']          = createConfigurationTimeSelections('bonus_notify_wait', 'ms' );
 
        // Load final template
-       loadTemplate('admin_config_bonus', false, $content);
+       loadTemplate('admin_config_bonus', FALSE, $content);
 }
 
 // [EOF]