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');
|
usort($tmp, 'compare');
|
||||||
|
|
||||||
foreach ($tmp as &$visitor) {
|
foreach ($tmp as &$visitor) {
|
||||||
$userAgent = $visitor['user_agent'];
|
$userAgent = $visitor['user_agent'] ?? '';
|
||||||
if ($userAgent == 'unknown') {
|
if (!strlen($userAgent) || $userAgent == 'unknown') {
|
||||||
$browser = 'Unknown';
|
$browser = 'Unknown';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user