Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/issuetemplate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Sections/ClientSection.php4
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
+}