Fix coffee list rotation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc
2024-07-05 19:01:24 -04:00
parent 0852986599
commit e7f5673a19
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}