diff options
author | Helmut K. C. Tessarek <tessarek@evermeet.cx> | 2018-06-13 19:22:14 +0300 |
---|---|---|
committer | Helmut K. C. Tessarek <tessarek@evermeet.cx> | 2018-06-19 17:55:15 +0300 |
commit | f33165146b5482a2c3a2bd6339c4513e3e1b0309 (patch) | |
tree | 1efae15b6a6cfe505fb74b082366131bd61bb97f /lib | |
parent | 70fefb40b4fece75f05d3b86104f1dd7c62329c9 (diff) |
fix Undefined index: SERVER_SOFTWARE
Signed-off-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sections/ServerSection.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Sections/ServerSection.php b/lib/Sections/ServerSection.php index 53d7978..354cdb8 100644 --- a/lib/Sections/ServerSection.php +++ b/lib/Sections/ServerSection.php @@ -83,7 +83,11 @@ SELECT * FROM `oc_appconfig` WHERE `appid` = \'user_ldap\'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.', IDetail::TYPE_COLLAPSIBLE_PREFORMAT); } private function getWebserver() { - return $_SERVER['SERVER_SOFTWARE'] . ' (' . PHP_SAPI . ')'; + if (isset($_SERVER['SERVER_SOFTWARE']) && !empty($_SERVER['SERVER_SOFTWARE'])) { + return $_SERVER['SERVER_SOFTWARE'] . ' (' . PHP_SAPI . ')'; + } else { + return 'Unknown' . ' (' . PHP_SAPI . ')'; + } } private function getNextcloudVersion() { |