]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
fixed a small error if at non apache or setting hides the method
authorBanana <mail@bananas-playground.net>
Mon, 15 Jan 2024 14:56:10 +0000 (15:56 +0100)
committerBanana <mail@bananas-playground.net>
Mon, 15 Jan 2024 14:56:10 +0000 (15:56 +0100)
webclient/view/default/sysinfo/sysinfo.php

index 509b513efe14c809c8d381da0b0c20cc45f51ce2..5e64236d22e03d5154a63e516c2d1b49e6bf800a 100644 (file)
@@ -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
  */
 
 $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);