Guard against missing apache_get_version()

This commit is contained in:
Bharat Mediratta
2009-01-04 08:55:00 +00:00
parent 16ef5a8c28
commit 24917d337c

View File

@@ -4,7 +4,7 @@
<? printf(_("Operating System: %s"), PHP_OS) ?>
</li>
<li>
<? printf(_("Apache: %s"), apache_get_version()) ?>
<? printf(_("Apache: %s"), function_exists("apache_get_version") ? apache_get_version() : _("Unknown")) ?>
</li>
<li>
<? printf(_("PHP: %s"), phpversion()) ?>