From f6f51a6ef6bad21dc04997a5d585f90eab082187 Mon Sep 17 00:00:00 2001 From: Eric Barnes Date: Sat, 5 Feb 2011 21:41:17 -0500 Subject: Fixed is_referral to return proper status. Fixes #40 --- system/libraries/User_agent.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'system') 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; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b