From e22fa377080ef0cffb701e4d62e76d233341b799 Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Tue, 1 Jun 2021 15:30:58 +0100 Subject: [PATCH] Fix PHP notice when there are no Stripe customers --- api/v3/StripeCustomer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/StripeCustomer.php b/api/v3/StripeCustomer.php index 6321eaa6..ca3611e4 100644 --- a/api/v3/StripeCustomer.php +++ b/api/v3/StripeCustomer.php @@ -75,7 +75,7 @@ function civicrm_api3_stripe_customer_get($params) { ]; $results[] = $result; } - return civicrm_api3_create_success($results); + return civicrm_api3_create_success($results ?? []); } /** -- GitLab