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
This commit is contained in:
sminnee 2010-10-13 04:27:51 +00:00
parent bdb865ea27
commit 432413132a

View File

@ -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;