summaryrefslogtreecommitdiffstats
path: root/system/helpers/cookie_helper.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-07-19 02:13:13 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-07-19 02:13:13 +0200
commit7aa1809e775bddfa08e17d8424a3532fcf06d6ae (patch)
treeda7b97e3e0eee38a8edeff5027aba0143a59707c /system/helpers/cookie_helper.php
parentce542a298ebfc8088024cfc32bbf971286c59cd2 (diff)
Diffstat (limited to 'system/helpers/cookie_helper.php')
-rw-r--r--system/helpers/cookie_helper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php
index 9dc5df9b1..4fb30bd5b 100644
--- a/system/helpers/cookie_helper.php
+++ b/system/helpers/cookie_helper.php
@@ -60,15 +60,15 @@ function set_cookie($name = '', $value = '', $expire = '', $domain = '', $path =
if ($prefix == '' AND $CI->config->item('cookie_prefix') != '')
{
- $CI->config->item('cookie_prefix');
+ $prefix = $CI->config->item('cookie_prefix');
}
if ($domain == '' AND $CI->config->item('cookie_domain') != '')
{
- $CI->config->item('cookie_domain');
+ $domain = $CI->config->item('cookie_domain');
}
- if ($prefix == '/' AND $CI->config->item('cookie_path') != '/')
+ if ($path == '/' AND $CI->config->item('cookie_path') != '/')
{
- $CI->config->item('cookie_path');
+ $path = $CI->config->item('cookie_path');
}
if ( ! is_numeric($expire))