generated from autonomic-cooperative/wordpress-starter
Fix coffee list rotation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -166,7 +166,7 @@ function action_wcs_renewal_order_created($order, $subscription)
|
||||
$last_order_coffee["coffee"]->ID,
|
||||
$last_order_coffee["coffee_list"]->coffees
|
||||
);
|
||||
if (!$position_in_list) {
|
||||
if ($position_in_list === false) {
|
||||
// ignore this, can't find it in list anymore
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user