From: Banana Date: Mon, 15 Jan 2024 14:56:10 +0000 (+0100) Subject: fixed a small error if at non apache or setting hides the method X-Git-Tag: 1.6~6 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=b70a79579afea86470cb667a97ff8c4cc3bf4da7;p=bibliotheca-php.git fixed a small error if at non apache or setting hides the method --- diff --git a/webclient/view/default/sysinfo/sysinfo.php b/webclient/view/default/sysinfo/sysinfo.php index 509b513..5e64236 100644 --- a/webclient/view/default/sysinfo/sysinfo.php +++ b/webclient/view/default/sysinfo/sysinfo.php @@ -2,7 +2,7 @@ /** * Bibliotheca * - * Copyright 2018-2023 Johannes Keßler + * Copyright 2018-2024 Johannes Keßler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,10 @@ */ $TemplateData['bibVersion'] = BIB_VERSION; -$TemplateData['apacheVersion'] = apache_get_version(); +$TemplateData['apacheVersion'] = $_SERVER['SERVER_SOFTWARE']; +if(function_exists("apache_get_version")) { + $TemplateData['apacheVersion'] = apache_get_version(); +} $TemplateData['phpVersion'] = phpversion(); $TemplateData['mysqlVersion'] = mysqli_get_server_info($DB);