mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
small fix
This commit is contained in:
parent
a98cb66c53
commit
b7ba09a551
@ -36,8 +36,8 @@ $tmp = $visitors->getVisitors();
|
||||
usort($tmp, 'compare');
|
||||
|
||||
foreach ($tmp as &$visitor) {
|
||||
$userAgent = $visitor['user_agent'];
|
||||
if ($userAgent == 'unknown') {
|
||||
$userAgent = $visitor['user_agent'] ?? '';
|
||||
if (!strlen($userAgent) || $userAgent == 'unknown') {
|
||||
$browser = 'Unknown';
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user