Skip to content

Commit d773b57

Browse files
authored
Merge pull request #252 from pau1phi11ips/patch-2
Fix 500 errors on old ?add-to-cart= links
2 parents 0f10d0a + d92d44e commit d773b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Integrations/WooCommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function track_direct_add_to_cart() {
205205
*/
206206
public function track_add_to_cart( $product, $add_to_cart_data ) {
207207
if ( ! $product ) {
208-
return;
208+
return;
209209
}
210210

211211
$product_data = $this->clean_data( $product->get_data() );

0 commit comments

Comments
 (0)