CIVICRM-1816 CiviCRM Mailing, function unsub_from_mailing has spelling error, "experi...
authorJustin Freeman <justin@agileware.com.au>
Tue, 24 Aug 2021 23:13:51 +0000 (09:13 +1000)
committerJustin Freeman <justin@agileware.com.au>
Tue, 24 Aug 2021 23:13:51 +0000 (09:13 +1000)
CRM/Mailing/Event/BAO/Unsubscribe.php

index ff7415fa4eceb5918d4087ddd12d9a7bdedff251..73f61f549c3a6aa72d3bd3416724988e58521a7b 100644 (file)
@@ -132,7 +132,7 @@ WHERE  email = %2
     $relevant_mailing_id = $mailing_id;
 
     // Special case for AB Tests:
-    if (in_array($mailing_type, ['experiement', 'winner'])) {
+    if (in_array($mailing_type, ['experiment', 'winner'])) {
       // The mailing belongs to an AB test.
       // See if we can find an AB test where this is variant B.
       $mailing_id_a = CRM_Core_DAO::getFieldValue('CRM_Mailing_DAO_MailingAB', mailing_id, 'mailing_id_a', 'mailing_id_b');