Skip to content

Commit

Permalink
Merge pull request #86 from reepay/pavl
Browse files Browse the repository at this point in the history
Pavl
  • Loading branch information
dimaspolohov committed May 2, 2024
2 parents a889464 + 302682e commit dca8e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reepay-subscriptions-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function support_HPOS()
public function disable_emails(string $recipient, $order): string
{
$page = $_GET['page'] = $_GET['page'] ?? '';
if ('wc-settings' === $page) {
if ( 'wc-settings' === $page || ! is_a( 'WC_Order', $order ) ) {
return $recipient;
}

Expand Down

0 comments on commit dca8e81

Please sign in to comment.