Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

undefined index in Cart.php on line 188 #466

Closed
nicmare opened this issue Sep 20, 2019 · 1 comment
Closed

undefined index in Cart.php on line 188 #466

nicmare opened this issue Sep 20, 2019 · 1 comment

Comments

@nicmare
Copy link

nicmare commented Sep 20, 2019

Notice: Undefined index: value in …r/wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Cart.php on line 188

change this:
if ($term && $term->name === $data['value']) {

to that:
if ($term && isset($data['value']) && $term->name === $data['value']) {

seems to fix the notice!

@Jon007
Copy link
Contributor

Jon007 commented Oct 8, 2019

that looks like a good candidate for a pull request!

@Jon007 Jon007 closed this as completed in f7aa4af Oct 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants