allow token to be null in cart table
This commit is contained in:
@@ -234,12 +234,14 @@ class Cart implements EventSubscriberInterface
|
||||
|
||||
protected function generateCookie()
|
||||
{
|
||||
$id = null;
|
||||
if (ConfigQuery::read("cart.session_only", 0) == 0) {
|
||||
$id = uniqid('', true);
|
||||
setcookie("thelia_cart", $id, time()+ConfigQuery::read("cookie.lifetime", 60*60*24*365));
|
||||
|
||||
return $id;
|
||||
}
|
||||
|
||||
return $id;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user