X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_other.php;h=7345a4eb6fa846d07abb65c242b0b37458c4c61d;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=78688741e514d2f5ddacad82d22127c889e4e4e8;hpb=5ef42cb239e9225f160f5963a718f14bc70a1866;p=mailer.git diff --git a/inc/modules/admin/what-config_other.php b/inc/modules/admin/what-config_other.php index 78688741e5..7345a4eb6f 100644 --- a/inc/modules/admin/what-config_other.php +++ b/inc/modules/admin/what-config_other.php @@ -83,17 +83,15 @@ if (isFormSent('save_config')) { $content[$entry] = ''; } // END - foreach - // Set selections - foreach (array('css_php','mailid_error_redirect') as $entry) { - $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"'; - } // END - foreach - for ($i = '0'; $i <= 5; $i++) { $content['comma_def_' . $i] = ''; } // END - for + // Set selections + $content = merge_array($content, getCheckedConfig(array('css_php','mailid_error_redirect'))); + // Set selection - $content['comma_def_' . getConfig('max_comma')] = ' selected="selected"'; + $content = merge_array($content, getSelectedConfig(array('comma_def_' . getConfig('max_comma')))); // Load template loadTemplate('admin_config_other', FALSE, $content);