Skip to content

Commit

Permalink
Prevent null issues within cart item filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Aug 6, 2024
1 parent ffe3599 commit e2cef9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-gzd-product-attribute-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function attribute_visibility( $attribute, $i ) {
public function cart_item_data_filter( $item_data, $cart_item ) {
$cart_product = $cart_item['data'];

if ( ! $cart_product ) {
if ( ! $cart_product || null === $item_data ) {
return $item_data;
}

Expand Down

0 comments on commit e2cef9c

Please sign in to comment.