From b70a79579afea86470cb667a97ff8c4cc3bf4da7 Mon Sep 17 00:00:00 2001 From: Banana Date: Mon, 15 Jan 2024 15:56:10 +0100 Subject: [PATCH] fixed a small error if at non apache or setting hides the method --- webclient/view/default/sysinfo/sysinfo.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.39.5