Fixed PHP warning about the unset 'server_log_dir'
This commit is contained in:
parent
4aed3a4906
commit
bb05dfcd58
|
@ -239,7 +239,8 @@ $table->data[31][1] = __('Yes').' '.html_print_radio_button ('c
|
|||
$table->data[31][1] .= __('No').' '.html_print_radio_button ('command_snapshot', 0, '', $config["command_snapshot"], true);
|
||||
|
||||
$table->data[32][0] = __('Server logs directory') . ui_print_help_tip (__("Directory where the server logs are stored."), true);
|
||||
$table->data[32][1] = html_print_input_text ('server_log_dir', $config["server_log_dir"], '', 50, 255, true);
|
||||
$table->data[32][1] = html_print_input_text ('server_log_dir',
|
||||
$config["server_log_dir"], '', 50, 255, true);
|
||||
|
||||
$modes_tutorial = array(
|
||||
'full' => __('Full mode'),
|
||||
|
|
|
@ -1164,6 +1164,10 @@ function config_process_config () {
|
|||
config_update_value ('event_storm_protection', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['server_log_dir'])) {
|
||||
config_update_value ('server_log_dir', "");
|
||||
}
|
||||
|
||||
if (!isset($config['command_snapshot'])) {
|
||||
config_update_value ('command_snapshot', 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue