Redmine #5731 Error when setting various system log settings from factory default config

Forum https://forum.pfsense.org/index.php?topic=104762.0
This commit is contained in:
Phil Davis 2016-01-04 09:32:12 +05:45
parent 14c49a5f22
commit e80934cd3e
2 changed files with 6 additions and 2 deletions

View File

@ -191,7 +191,9 @@ if ($save_settings) {
if (!$input_errors) {
# Clear out the specific log settings and leave only the applied settings to override the general logging options (global) settings.
unset($config['syslog'][$specific_log]);
if (isset($config['syslog'][$specific_log])) {
unset($config['syslog'][$specific_log]);
}
# All
if ($cronorder != '') { # if not using the general logging options setting (global)

View File

@ -213,7 +213,9 @@ if ($save_settings) {
if (!$input_errors) {
# Clear out the specific log settings and leave only the applied settings to override the general logging options (global) settings.
unset($config['syslog'][$specific_log]);
if (isset($config['syslog'][$specific_log])) {
unset($config['syslog'][$specific_log]);
}
# All
if ($cronorder != '') { # if not using the general logging options setting (global)