‘Undefined index’ during WC product save
-
Each time when saving a WC product, I’m getting the following notice:
`PHP Notice: Undefined index: enable_payment_action in \plugins\paypal-for-woocommerce\paypal-for-woocommerce.php on line 1117
line 1117:
if ( 'yes' === $_REQUEST['enable_payment_action'] ) {
adjusting it to:
if ( isset($_REQUEST['enable_payment_action']) && ('yes' === $_REQUEST['enable_payment_action']) ) {
makes the notice go away for meThanks.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘‘Undefined index’ during WC product save’ is closed to new replies.