X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_surfbar.php;h=33b20d32f5eac699edbea0eb585d4e514aa6fcb1;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=1af1c774833ff8d06fcd9dfd455a271ad2172b8d;hpb=56931cd9321119dd37372bd16d6c552857e40066;p=mailer.git diff --git a/inc/modules/admin/what-config_surfbar.php b/inc/modules/admin/what-config_surfbar.php index 1af1c77483..33b20d32f5 100644 --- a/inc/modules/admin/what-config_surfbar.php +++ b/inc/modules/admin/what-config_surfbar.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * * it under the terms of the GNU General Public License as published by * @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Was the form submitted? -if (isFormSent()) { +if (isFormSent('save_config')) { // Replace german decimal comma with computer decimal dot convertCommaToDotInPostDataArray(array('surfbar_static_reward', 'surfbar_static_costs', 'surfbar_dynamic_percent')); @@ -68,12 +68,10 @@ if (isFormSent()) { } // END - foreach // Prepare selections - foreach (array('surfbar_payment_model','surfbar_pause_mode','surfbar_notification_mode') as $entry) { - $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"'; - } // END - foreach + $content = merge_array($content, getCheckedConfig(array('surfbar_payment_model','surfbar_pause_mode','surfbar_notification_mode'))); // Load template - loadTemplate('admin_config_surfbar', false, $content); + loadTemplate('admin_config_surfbar', FALSE, $content); } // [EOF]