MailchimpListsSubscription::getInterestGroups() should always return an array

Created on 26 January 2021, almost 4 years ago
Updated 25 January 2024, 10 months ago

Problem/Motivation

_mailchimp_lists_subscription_has_changed() uses the output of MailchimpListsSubscription::getInterestGroups() unconditionally as input for a foreach loop. MailchimpListsSubscription::getInterestGroups() however can return NULL.

Proposed resolution

Make MailchimpListsSubscription::getInterestGroups() to always return an array

API changes

MailchimpListsSubscription::getInterestGroups() now returns an empty array instead of NULL if no interest groups were saved for a subscription.

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Lists Module

Created by

πŸ‡³πŸ‡±Netherlands casey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024