Remove deprecated code lines
authoreileen <emcnaughton@wikimedia.org>
Wed, 16 Sep 2020 10:31:05 +0000 (22:31 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 16 Sep 2020 10:31:05 +0000 (22:31 +1200)
CRM/Core/BAO/Email.php

index 0dd1bca05a49d314cd910b8415f2e82aa4cba4ba..4de9573d63315ffc9e7ef7a5491793498363895a 100644 (file)
@@ -54,10 +54,6 @@ class CRM_Core_BAO_Email extends CRM_Core_DAO_Email {
     $hook = empty($params['id']) ? 'create' : 'edit';
     CRM_Utils_Hook::pre($hook, 'Email', CRM_Utils_Array::value('id', $params), $params);
 
-    if (isset($params['is_bulkmail']) && $params['is_bulkmail'] === 'null') {
-      CRM_Core_Error::deprecatedFunctionWarning('It is not valid to set bulkmail to null, it is boolean');
-      $params['bulkmail'] = 0;
-    }
     $email = new CRM_Core_DAO_Email();
     $email->copyValues($params);
     if (!empty($email->email)) {