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
path: root/lib
diff options
context:
space:
mode:
authorHelmut K. C. Tessarek <tessarek@evermeet.cx>2018-06-13 19:21:42 +0300
committerHelmut K. C. Tessarek <tessarek@evermeet.cx>2018-06-19 17:55:05 +0300
commit70fefb40b4fece75f05d3b86104f1dd7c62329c9 (patch)
tree129015d99f62cd0935e804e1256e239fde8efc58 /lib
parent9f152737c48edd4f780a8893402f522b1912d317 (diff)
fix Undefined index: HTTP_USER_AGENT
Signed-off-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>
Diffstat (limited to 'lib')
-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
+}