BUGFIX Fixed case where $_SERVER['SERVER_SIGNATURE'] was an empty string, use empty() instead of checking if it's set (which it is, but has an empty string)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@101734 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sharvey 2010-03-26 01:57:55 +00:00 committed by Sam Minnee
parent 8efa9b3e41
commit 89d4cf8161

View File

@ -277,7 +277,7 @@ class InstallRequirements {
}
function isApache() {
$signature = isset($_SERVER['SERVER_SIGNATURE'])
$signature = !empty($_SERVER['SERVER_SIGNATURE'])
? $_SERVER['SERVER_SIGNATURE']
: @$_SERVER['SERVER_SOFTWARE'];