summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-04 08:55:00 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-04 08:55:00 +0000
commit24917d337c7c3efbd54dbc29f4b5ee746674b0b1 (patch)
tree1e7466a1f2064d258829826e6c704dabbed7e9de
parent16ef5a8c28b298b27cdb21ec2b2a12d5c445bb02 (diff)
Guard against missing apache_get_version()
-rw-r--r--core/views/admin_block_platform.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/admin_block_platform.html.php b/core/views/admin_block_platform.html.php
index 79bf85ed..958097a1 100644
--- a/core/views/admin_block_platform.html.php
+++ b/core/views/admin_block_platform.html.php
@@ -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()) ?>