Skip to content

Commit

Permalink
Merge pull request preinheimer#79 from pvolyntsev/master
Browse files Browse the repository at this point in the history
Fixed "PHP Notice: Undefined index: HTTP_HOST"
  • Loading branch information
preinheimer committed Jan 30, 2014
2 parents fa37011 + ee68742 commit 3bbf52e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions external/header.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
if (PHP_SAPI == 'cli') {
$_SERVER['REMOTE_ADDR'] = null;
$_SERVER['HTTP_HOST'] = null;
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
}

Expand Down

0 comments on commit 3bbf52e

Please sign in to comment.