#2282 Undefined index in install.php (merged from trunk, r50698)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.2.2@51062 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
aoneil 2008-03-13 22:56:55 +00:00 committed by Sam Minnee
parent ef7a3a676b
commit e95a2df7dd

View File

@ -155,7 +155,7 @@ class InstallRequirements {
$this->requireTempFolder(array('File permissions', 'Is the temporary folder writeable?', null));
// Check for web server, unless we're calling the installer from the command-line
if(!$_SERVER['argv']) {
if(!isset($_SERVER['argv']) || !$_SERVER['argv']) {
$webserver = strip_tags(trim($_SERVER['SERVER_SIGNATURE']));
if($webserver == '') {
$webserver = "I can't tell what webserver you are running";