-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
BugFor errors / faults / flaws / inconsistencies etc.For errors / faults / flaws / inconsistencies etc.
Milestone
Description
PHP Notice: Trying to access array offset on value of type null in /core/Tracker/Settings.php on line 44
Line 44 is a device/browser type check
if ($aBrowserInfo[‘type’] != ‘browser’) {
I wrapped it in an if(!empty($aBrowserInfo[‘type’])) statement (as opposed to just suppressing the notices) to see if that would make the notices go away.
matomo/core/Tracker/Settings.php
Lines 42 to 48 in 5322d05
$aBrowserInfo = $deviceDetector->getClient(); | |
if ($aBrowserInfo['type'] != 'browser') { | |
// for now only track browsers | |
unset($aBrowserInfo); | |
} | |
Metadata
Metadata
Assignees
Labels
BugFor errors / faults / flaws / inconsistencies etc.For errors / faults / flaws / inconsistencies etc.