Merge pull request #3165 from Icinga/bugfix/syslog-not-default-logging-anymore

setup: Don't show logging facility if webserver logging is selected
This commit is contained in:
Johannes Meyer 2017-11-27 17:01:24 +01:00 committed by GitHub
commit 9e9b49a83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class LoggingConfigForm extends Form
);
}
if (false === isset($formData['logging_log']) || in_array($formData['logging_log'], array('syslog', 'php'))) {
if (! isset($formData['logging_log']) || in_array($formData['logging_log'], array('syslog', 'php'))) {
$this->addElement(
'text',
'logging_application',
@ -94,7 +94,7 @@ class LoggingConfigForm extends Form
)
);
if (! isset($formData['logging_log']) || $formData['logging_log'] === 'syslog') {
if (isset($formData['logging_log']) && $formData['logging_log'] === 'syslog') {
if (Platform::isWindows()) {
/* @see https://secure.php.net/manual/en/function.openlog.php */
$this->addElement(