We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d67a3e commit 2810f7bCopy full SHA for 2810f7b
src/Visits.php
@@ -104,7 +104,7 @@ public function record()
104
// add session/server specifics
105
$visit->session_id = $this->session->session_id;
106
$visit->user_id = $this->session->{$this->config->userSource} ?? null;
107
- $visit->user_agent = $_SERVER['HTTP_USER_AGENT'] ?? null;
+ $visit->user_agent = $_SERVER['HTTP_USER_AGENT'] ?? '';
108
$visit->ip_address = $_SERVER['REMOTE_ADDR'] ?? null;
109
110
// check for an existing similar record
0 commit comments