mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48934 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
536770caca
commit
b4de288995
@ -66,7 +66,7 @@ class PageView extends DataObject {
|
||||
|
||||
private function recordFromExternal() {
|
||||
$http_host = "http://".$_SERVER['HTTP_HOST'];
|
||||
if (!strstr($_SERVER['HTTP_REFERER'], $http_host) && $_SERVER['HTTP_REFERER'] != null)
|
||||
if (isset($_SERVER['HTTP_REFERER']) && !strstr($_SERVER['HTTP_REFERER'], $http_host) && $_SERVER['HTTP_REFERER'] != null)
|
||||
$this->FromExternal = 1;
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ class PageView extends DataObject {
|
||||
}
|
||||
|
||||
private function recordReferrer() {
|
||||
$this->Referrer = $_SERVER['HTTP_REFERER'];
|
||||
if(isset($_SERVER['HTTP_REFERER'])) $this->Referrer = $_SERVER['HTTP_REFERER'];
|
||||
}
|
||||
|
||||
private function recordOS() {
|
||||
|
Loading…
Reference in New Issue
Block a user