summaryrefslogtreecommitdiffstats
path: root/system/helpers/cookie_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/cookie_helper.php')
-rw-r--r--system/helpers/cookie_helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php
index 77f86e489..8d892a5d6 100644
--- a/system/helpers/cookie_helper.php
+++ b/system/helpers/cookie_helper.php
@@ -107,6 +107,8 @@ if ( ! function_exists('get_cookie'))
{
function get_cookie($index = '', $xss_clean = FALSE)
{
+ $CI =& get_instance();
+
$prefix = '';
if ( ! isset($_COOKIE[$index]) && config_item('cookie_prefix') != '')