diff options
-rw-r--r-- | lib/Sections/ClientSection.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sections/ClientSection.php b/lib/Sections/ClientSection.php index 7463096..57c78d1 100644 --- a/lib/Sections/ClientSection.php +++ b/lib/Sections/ClientSection.php @@ -61,10 +61,10 @@ class ClientSection extends Section { $browserString .= $browser['plattform'] . ' '; } } - if(empty($browserString)) { + if(isset($_SERVER['HTTP_USER_AGENT']) && empty($browserString)) { return $_SERVER['HTTP_USER_AGENT']; } return $browserString; } -}
\ No newline at end of file +} |