mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix psalm errors
This commit is contained in:
parent
7485a1d233
commit
924aa18ddc
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class PayPalSubscriptionsModule implements ModuleInterface {
|
||||||
$subscriptions_mode = $settings->get( 'subscriptions_mode' );
|
$subscriptions_mode = $settings->get( 'subscriptions_mode' );
|
||||||
|
|
||||||
if ( 'subscriptions_api' !== $subscriptions_mode ) {
|
if ( 'subscriptions_api' !== $subscriptions_mode ) {
|
||||||
if ( $product->get_sold_individually() ) {
|
if ( $product && $product->get_sold_individually() ) {
|
||||||
$product->set_sold_individually( false );
|
$product->set_sold_individually( false );
|
||||||
$product->save();
|
$product->save();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue