From 70fefb40b4fece75f05d3b86104f1dd7c62329c9 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Wed, 13 Jun 2018 18:21:42 +0200 Subject: fix Undefined index: HTTP_USER_AGENT Signed-off-by: Helmut K. C. Tessarek --- lib/Sections/ClientSection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 +} -- cgit v1.2.3