Added sanity check to resolve missing variable
Unsure why but as of this morning (perhaps because of upgrading to PHP 5.5.8 PHPUnit started barking about _SERVER['HTTP_HOST'] not being set.
This commit is contained in:
parent
da7a0de91f
commit
46b77fa1b1
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Config extends Object
|
|||
// Exact match
|
||||
if ((preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $host)
|
||||
&& $_SERVER['SERVER_ADDR'] == $host)
|
||||
|| $_SERVER['HTTP_HOST'] == $host)
|
||||
|| (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == $host))
|
||||
{
|
||||
$environment = $name;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue