diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-04 09:32:12 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-04 09:32:12 +0545 |
commit | e80934cd3ecb5a0b0bc694e8249d05863f8e4f42 (patch) | |
tree | ba091470d321982494a2bc584b715a57a64ab963 | |
parent | 14c49a5f221be41e0c5e3bd668679a2b18a62ede (diff) | |
download | pfsense-e80934cd3ecb5a0b0bc694e8249d05863f8e4f42.zip pfsense-e80934cd3ecb5a0b0bc694e8249d05863f8e4f42.tar.gz |
Redmine #5731 Error when setting various system log settings from factory default config
Forum https://forum.pfsense.org/index.php?topic=104762.0
-rwxr-xr-x | src/usr/local/www/status_logs.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/status_logs_filter.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/status_logs.php b/src/usr/local/www/status_logs.php index 4a1ff52..adf5ecc 100755 --- a/src/usr/local/www/status_logs.php +++ b/src/usr/local/www/status_logs.php @@ -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) diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php index 132c76b..cd3117e 100644 --- a/src/usr/local/www/status_logs_filter.php +++ b/src/usr/local/www/status_logs_filter.php @@ -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) |