From 432413132abf240569b3c1569700897168f74d55 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 04:27:51 +0000 Subject: [PATCH] BUGFIX Installer bug where apache_get_modules() doesn't exist (installing from IIS) (from r101357) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112221 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index af931a2..283a891 100644 --- a/install.php +++ b/install.php @@ -594,7 +594,7 @@ class InstallRequirements { } function testApacheRewriteExists($moduleName = 'mod_rewrite') { - if(in_array($moduleName, apache_get_modules())) { + if(function_exists('apache_get_modules') && in_array($moduleName, apache_get_modules())) { return true; } else { return false;