Skip to content

Commit 335bca4

Browse files
authored
Update CustomerFlushFormKey.php
1 parent b5f47a1 commit 335bca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Plugin/CustomerFlushFormKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function aroundExecute(FlushFormKey $subject, callable $proceed, Observer
4747
$currentFormKey = $this->dataFormKey->getFormKey();
4848
$proceed($observer);
4949
$beforeParams = $this->session->getBeforeRequestParams();
50-
if ($beforeParams['form_key'] == $currentFormKey) {
50+
if (isset($beforeParams['form_key']) && $beforeParams['form_key'] === $currentFormKey) {
5151
$beforeParams['form_key'] = $this->dataFormKey->getFormKey();
5252
$this->session->setBeforeRequestParams($beforeParams);
5353
}

0 commit comments

Comments
 (0)