Skip to content

Commit ee2bd2e

Browse files
committed
Resolving Issue #84
All Progarms not show anything using Classic theme
1 parent 6f28f6a commit ee2bd2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

syslog.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,17 +1825,17 @@ function syslog_form_callback($form_name, $classic_sql, $column_display, $column
18251825

18261826
$theme = get_selected_theme();
18271827
if ($theme == 'classic' || read_config_option('autocomplete') > 0) {
1828-
print "<select id='" . html_escape($form_name) . "' name='" . html_escape($form_name) . "'" . $class . '>';
1828+
print "<select id='" . html_escape($form_name) . "' name='" . html_escape($form_name) . "'" . $class . ($on_change != '' ? "onChange='$on_change'":'') . '>';
18291829

18301830
if (!empty($none_entry)) {
1831-
print "<option value='0'" . (empty($previous_value) ? ' selected' : '') . ">$none_entry</option>\n";
1831+
print "<option value='-1'" . (empty($previous_value) ? ' selected' : '') . ">$none_entry</option>";
18321832
}
18331833

18341834
$form_data = syslog_db_fetch_assoc($classic_sql);
18351835

18361836
html_create_list($form_data, $column_display, $column_id, html_escape($previous_id));
18371837

1838-
print "</select>\n";
1838+
print '</select>';
18391839
} else {
18401840
if (empty($previous_id) && $previous_value == '') {
18411841
$previous_value = $none_entry;

0 commit comments

Comments
 (0)