#2282 Undefined index in install.php

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@50689 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
ischommer 2008-03-07 00:35:54 +00:00
parent 3bc42d4458
commit e022e12125

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