summaryrefslogtreecommitdiffstats
path: root/system/libraries/User_agent.php
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-02-06 03:41:17 +0100
committerEric Barnes <eric@ericlbarnes.com>2011-02-06 03:41:17 +0100
commitf6f51a6ef6bad21dc04997a5d585f90eab082187 (patch)
tree735a75d5d1b433b70629f26b43b2987710face79 /system/libraries/User_agent.php
parente58199ba6de5622a062536ba03c43700b70716ac (diff)
Fixed is_referral to return proper status. Fixes #40
Diffstat (limited to 'system/libraries/User_agent.php')
-rw-r--r--system/libraries/User_agent.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/User_agent.php b/system/libraries/User_agent.php
index c62174836..3774fc283 100644
--- a/system/libraries/User_agent.php
+++ b/system/libraries/User_agent.php
@@ -375,7 +375,11 @@ class CI_User_agent {
*/
public function is_referral()
{
- return ( ! isset($_SERVER['HTTP_REFERER']) OR $_SERVER['HTTP_REFERER'] == '');
+ if ( ! isset($_SERVER['HTTP_REFERER']) OR $_SERVER['HTTP_REFERER'] == '')
+ {
+ return FALSE;
+ }
+ return TRUE;
}
// --------------------------------------------------------------------