// Context part 31
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -40,9 +40,9 @@ $quantity = (int)(Tools::getValue('quantity'));
|
||||
$id_product_attribute = (int)(Tools::getValue('id_product_attribute'));
|
||||
if (Configuration::get('PS_TOKEN_ENABLE') == 1 AND
|
||||
strcmp(Tools::getToken(false), Tools::getValue('token')) AND
|
||||
$context->cookie->isLogged() === true)
|
||||
$context->customer->isLogged() === true)
|
||||
echo Tools::displayError('Invalid token');
|
||||
if ($context->cookie->isLogged())
|
||||
if ($context->customer->isLogged())
|
||||
{
|
||||
if ($id_wishlist AND WishList::exists($id_wishlist, $context->customer->id) === true)
|
||||
$context->cookie->id_wishlist = (int)($id_wishlist);
|
||||
|
||||
Reference in New Issue
Block a user