diff options
author | Roger Szabo <roger.szabo@web.de> | 2017-03-10 17:20:19 +0800 |
---|---|---|
committer | Roger Szabo <roger.szabo@web.de> | 2017-03-10 17:20:19 +0800 |
commit | 38d8492f30fa6e8e530711986042487c6310360b (patch) | |
tree | 95915bc1f96fe87dde128e53ad8a88767aac9b6a /lib | |
parent | 06a8ac6ff694301c8bc51169f6b86d16a7f5ea4e (diff) | |
download | nextcloud-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.php | 2 |
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', |