We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dfc852 commit a75769fCopy full SHA for a75769f
src/WezomAgency/Browserizr.php
@@ -30,7 +30,7 @@ public function setUserAgent($agent)
30
public function getUserAgent()
31
{
32
if ($this->agent === null) {
33
- return $_SERVER['HTTP_USER_AGENT'];
+ return isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
34
}
35
return $this->agent;
36
0 commit comments