From b058639a8a120d57c8eeacb1aecc51c6b027c4c4 Mon Sep 17 00:00:00 2001 From: Thomas Pulzer Date: Fri, 22 Jul 2016 14:45:33 +0200 Subject: [PATCH] Changed code style and made use of '===' comparison. --- lib/private/Log.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Log.php b/lib/private/Log.php index 2d06e62f54c..0a707f3d4ea 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -105,7 +105,10 @@ class Log implements ILogger { if($logger === null) { // TODO: Drop backwards compatibility for config in the future $logType = $this->config->getValue('log_type', 'file'); - $this->logger = 'OC\\Log\\'.ucfirst($logType=='owncloud' ? 'file' : $logType); + if($logType==='owncloud') { + $logType = 'file'; + } + $this->logger = 'OC\\Log\\'.ucfirst($logType); call_user_func(array($this->logger, 'init')); } else { $this->logger = $logger;