$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);