diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php
index 9dc5df9..4fb30bd 100644
--- a/system/helpers/cookie_helper.php
+++ b/system/helpers/cookie_helper.php
@@ -60,15 +60,15 @@
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))