From: <gem...@li...> - 2012-03-08 10:06:37
|
Revision: 536 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=536&view=rev Author: matijsdejong Date: 2012-03-08 10:06:27 +0000 (Thu, 08 Mar 2012) Log Message: ----------- $_SERVER['HTTP_HOST'] does not exist on all systems (apparently) Modified Paths: -------------- trunk/new_project/htdocs/index.php Modified: trunk/new_project/htdocs/index.php =================================================================== --- trunk/new_project/htdocs/index.php 2012-03-08 10:05:43 UTC (rev 535) +++ trunk/new_project/htdocs/index.php 2012-03-08 10:06:27 UTC (rev 536) @@ -63,7 +63,7 @@ $env = getenv('APPLICATION_ENV'); } else { // Erasmus MC processing - if (strpos($_SERVER["HTTP_HOST"], 'survey') === false) { + if (isset($_SERVER["HTTP_HOST"]) && (strpos($_SERVER["HTTP_HOST"], 'survey') === false)) { $env = 'testing'; } else { $env = 'production'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |