mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
small fix
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user