From 4493f7b74e1e309729b401f2f8b29979f91ab4e6 Mon Sep 17 00:00:00 2001 From: mark burdett Date: Fri, 9 Jun 2017 17:06:53 -0700 Subject: [PATCH] CRM-20713 - CiviMail - do not set mode = 'sms' if sms_provider_id = 'null' --- CRM/Mailing/BAO/Mailing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index d3c0b1c220..3305cdba32 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1787,7 +1787,7 @@ ORDER BY civicrm_email.is_bulkmail DESC // Populate the recipients. if (empty($params['_skip_evil_bao_auto_recipients_'])) { // check if it's sms - $mode = $mailing->sms_provider_id ? 'sms' : NULL; + $mode = $mailing->sms_provider_id && $mailing->sms_provider_id != 'null' ? 'sms' : NULL; self::getRecipients($job->id, $mailing->id, TRUE, $mailing->dedupe_email, $mode); } // Schedule the job now that it has recipients. -- 2.25.1