From 335bca412c2f699ddfd64ad235b2001f00ef640c Mon Sep 17 00:00:00 2001 From: Ronak Patel <11473750+ronak2ram@users.noreply.github.com> Date: Sun, 8 Jul 2018 14:28:54 +0530 Subject: [PATCH] Update CustomerFlushFormKey.php --- app/code/Magento/Customer/Model/Plugin/CustomerFlushFormKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/Model/Plugin/CustomerFlushFormKey.php b/app/code/Magento/Customer/Model/Plugin/CustomerFlushFormKey.php index c583af84cce50..213d4ab3527e6 100644 --- a/app/code/Magento/Customer/Model/Plugin/CustomerFlushFormKey.php +++ b/app/code/Magento/Customer/Model/Plugin/CustomerFlushFormKey.php @@ -47,7 +47,7 @@ public function aroundExecute(FlushFormKey $subject, callable $proceed, Observer $currentFormKey = $this->dataFormKey->getFormKey(); $proceed($observer); $beforeParams = $this->session->getBeforeRequestParams(); - if ($beforeParams['form_key'] == $currentFormKey) { + if (isset($beforeParams['form_key']) && $beforeParams['form_key'] === $currentFormKey) { $beforeParams['form_key'] = $this->dataFormKey->getFormKey(); $this->session->setBeforeRequestParams($beforeParams); }