Skip to content

Commit

Permalink
Checking if index exists (#3)
Browse files Browse the repository at this point in the history
Thanks for the report and fix.
  • Loading branch information
Vinícius Faria Toná authored and kmcgregor committed Aug 18, 2017
1 parent 1180e1b commit 5222044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
if ($this->request->getFullActionName() === 'customer_account_editPost' &&
$this->dataHelper->getChangedPassword() != null) {
$request = $this->request->getParams();
if ($request['change_password'] == 1 && $request['current_password'] != $request['password']) {
if (array_key_exists('change_password', $request) && $request['change_password'] == 1 && $request['current_password'] != $request['password']) {
$this->customerSession->setData('woopra_password_changed_trigger', 1);
}
}
Expand Down

0 comments on commit 5222044

Please sign in to comment.