Newsletter box shows previous boxes content on login & create account pages.

Description

On the login & create account pages the newsletter box shows the content of the previous box rather than its own content.

On these pages the newsletter does not output any content, however since $boxContent is still set from the previous box the wrong content is show.

To fix this;
Open /catalog/includes/boxes/mailchimp_newsletters.php.

Find the line;
if ( (MAILCHIMP_ENABLE == 'true') && (MAILCHIMP_API <> '') && (MAILCHIMP_ID <> '') && (MAILCHIMP_URL <> '') && (MAILCHIMP_U <> '') ) {
Before this line add;
unset($boxContent);

Find the line;
include (bts_select('boxes', $box_base_name)); // BTS 1.5
Change to;
if (isset($boxContent))
{
include (bts_select('boxes', $box_base_name)); // BTS 1.5
}

Environment

None

Steps to reproduce

None

Status

Assignee

Giles Marshall

Reporter

Scott Murphy

Labels

None

Severity

Minor

Components

Fix versions

Affects versions

v2.5.1

Priority

Configure