mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-19 11:23:50 +02:00
Ignore empty values
This commit is contained in:
parent
98b13c91a4
commit
9510640ba9
@ -45,7 +45,7 @@ foreach ($tmp as &$visitor) {
|
||||
if ($dd->isBot()) {
|
||||
$bot = $dd->getBot();
|
||||
$message = '(Bot) %s, <a href="%s" target="_blank">%s</a>';
|
||||
$browser = sprintf($message, $bot['category'], $bot['url'], $bot['name']);
|
||||
$browser = sprintf($message, $bot['category'] ?? 'Unknown', $bot['url'] ?? '', $bot['name'] ?? 'Unknown name');
|
||||
}
|
||||
else {
|
||||
$osFamily = OperatingSystem::getOsFamily($dd->getOs('name'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user