MailchimpListsSubscription::getInterestGroups() should always return an array

Created on 26 January 2021, over 3 years ago
Updated 25 January 2024, 8 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