summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoger Szabo <roger.szabo@web.de>2017-03-10 17:20:19 +0800
committerRoger Szabo <roger.szabo@web.de>2017-03-10 17:20:19 +0800
commit38d8492f30fa6e8e530711986042487c6310360b (patch)
tree95915bc1f96fe87dde128e53ad8a88767aac9b6a /lib
parent06a8ac6ff694301c8bc51169f6b86d16a7f5ea4e (diff)
downloadnextcloud-server-38d8492f30fa6e8e530711986042487c6310360b.tar.gz
nextcloud-server-38d8492f30fa6e8e530711986042487c6310360b.zip
improvement of userAgent variable assigment
Signed-off-by: Roger Szabo <roger.szabo@web.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Log/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index b1acd0175c5..0c30d2f1c00 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -101,7 +101,7 @@ class File {
} else {
$user = '--';
}
- $userAgent = ($request->getHeader('User-Agent') !== '') ? $request->getHeader('User-Agent') : '--';
+ $userAgent = $request->getHeader('User-Agent') ?: '--';
$version = $config->getValue('version', '');
$entry = compact(
'reqId',