[-] BO : #PSCFV-2279 Removed alert if token is invalid.

// Trimmed trailing spaces
This commit is contained in:
jObregon
2012-05-10 18:44:10 +00:00
parent 7132247cb2
commit 49bd4ee516
2 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -62,11 +62,8 @@ class CartControllerCore extends FrontController
public function postProcess()
{
if ($this->context->customer->isLogged() && !$this->isTokenValid())
$this->errors[] = Tools::displayError('Invalid token');
// Update the cart ONLY if $this->cookies are available, in order to avoid ghost carts created by bots
if ($this->context->cookie->exists() && !$this->errors)
if ($this->context->cookie->exists() && !$this->errors && !($this->context->customer->isLogged() && !$this->isTokenValid()))
{
if (Tools::getIsset('add') || Tools::getIsset('update'))
$this->processChangeProductInCart();