Skip to content

Commit

Permalink
Merge pull request #1909 from mailchimp/Issue1903-2.4
Browse files Browse the repository at this point in the history
closes #1903 for 2.4
  • Loading branch information
gonzaloebiz authored Feb 28, 2024
2 parents 07b7d62 + 7fdc2e3 commit c7e9561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Api/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ protected function getCampaign($store, $email)
$api = $this->_helper->getApi($store);
$actions = $this->_helper->getConfigValue(\Ebizmarts\MailChimp\Helper\Data::XML_CAMPAIGN_ACTION, $store);
try {
$activity = $api->lists->members->memberActivity->get($this->_helper->getDefaultList($store), md5($email), null, null, $actions);
$activity = $api->lists->members->memberActivity->get($this->_helper->getDefaultList($store), hash('md5',$email), null, null, $actions);
if ($activity) {
foreach ($activity['activity'] as $act) {
if (key_exists('action', $act) && key_exists('campaign_id', $act) && $act['campaign_id']) {
Expand Down

0 comments on commit c7e9561

Please sign in to comment.