diff --git a/wp-content/themes/mont58-coffee/functions.php b/wp-content/themes/mont58-coffee/functions.php index d753f8c..a79a613 100644 --- a/wp-content/themes/mont58-coffee/functions.php +++ b/wp-content/themes/mont58-coffee/functions.php @@ -152,7 +152,7 @@ function action_wcs_renewal_order_created($order, $subscription) $order_coffees = []; $seen_subscriptions = []; - if ($last_order_coffees !== false) { + if ($last_order_coffees) { // Check last_order_coffees isn't null or false // Get the latest coffee seen in each coffee list from the previous order foreach (array_reverse($last_order_coffees) as $last_order_coffee) { if (