BUGFIX Installer bug where apache_get_modules() doesn't exist (installing from IIS)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@101357 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sharvey 2010-03-18 23:19:35 +00:00 committed by Sam Minnee
parent 934fbf9a88
commit befa638192

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;