From 17fa071d73520fefdb7861fcd44039efbebdf8f5 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 27 Nov 2017 16:42:48 +0100 Subject: [PATCH] setup: Don't show logging facility if webserver logging is selected Syslog used to be the default selection. Now it's the webserver log. --- application/forms/Config/General/LoggingConfigForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/forms/Config/General/LoggingConfigForm.php b/application/forms/Config/General/LoggingConfigForm.php index e1b0e130f..f8c41a4c4 100644 --- a/application/forms/Config/General/LoggingConfigForm.php +++ b/application/forms/Config/General/LoggingConfigForm.php @@ -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(