From 70886ea67d2ef9b1437f2e386968042b68829b23 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 9 Jul 2024 14:30:08 -0400 Subject: [PATCH] Further fix to array handling --- wp-content/themes/mont58-coffee/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (