summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))