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

// Trimmed trailing spaces

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15196 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
jObregon
2012-05-10 18:44:10 +00:00
parent 3675224eda
commit 1a3f109962
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();