//small cookie expire fix

This commit is contained in:
vAugagneur
2012-11-30 09:35:42 +01:00
parent 7edd3555eb
commit b8e93d8c44
+1 -1
View File
@@ -63,7 +63,7 @@ class CookieCore
public function __construct($name, $path = '', $expire = null, $shared_urls = null)
{
$this->_content = array();
$this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);
$this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire;
$this->_name = md5(_PS_VERSION_.$name);
$this->_path = trim(Context::getContext()->shop->physical_uri.$path, '/\\').'/';
if ($this->_path{0} != '/') $this->_path = '/'.$this->_path;