Skip to content

Commit

Permalink
Fixed E_NOTICE error
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Oct 27, 2016
1 parent cc8094f commit 6ce5323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions.inc
Expand Up @@ -371,7 +371,10 @@ function BAN_check()

$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
$HTTP_REFERER = $_SERVER['HTTP_REFERER'];
$HTTP_REFERER = ''; // May not always be set if no real referrer. Depends on web server
if (isset($_SERVER['HTTP_REFERER'])) {
$HTTP_REFERER = $_SERVER['HTTP_REFERER'];
}
$SCRIPT_NAME = $_SERVER['SCRIPT_NAME'];

$current_date = date("Y-m-d H:i:s");
Expand Down

0 comments on commit 6ce5323

Please sign in to comment.