$where[] = "( e.is_override IS NULL OR e.is_override = 0 )";
$dateField = str_replace('membership_', 'e.', $actionSchedule->start_action_date);
$notINClause = self::permissionedRelationships($contactField);
-
+
- $membershipStatus = CRM_Member_PseudoConstant::membershipStatus(NULL, "is_current_member = 1 OR name = 'Expired'", 'id');
+ $membershipStatus = CRM_Member_PseudoConstant::membershipStatus(NULL, "(is_current_member = 1 OR name = 'Expired')", 'id');
$mStatus = implode (',', $membershipStatus);
$where[] = "e.status_id IN ({$mStatus})";
* domain and mailing tokens
*
*/
- static function tokenReplace(&$mailing) {
+ public static function tokenReplace(&$mailing) {
$domain = CRM_Core_BAO_Domain::getDomain();
- foreach (array(
- 'text', 'html') as $type) {
+ foreach (array('text', 'html') as $type) {
$tokens = $mailing->getTokens();
if (isset($mailing->templates[$type])) {
$mailing->templates[$type] = CRM_Utils_Token::replaceSubscribeInviteTokens($mailing->templates[$type]);