improvement of userAgent variable assigment
Signed-off-by: Roger Szabo <roger.szabo@web.de>
This commit is contained in:
parent
06a8ac6ff6
commit
38d8492f30
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue