Plugin Directory

Changeset 2215869


Ignore:
Timestamp:
12/20/2019 05:48:40 PM (6 years ago)
Author:
john ackers
Message:

handle missing MP email address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ecampaign/branches/maintenance/uk/MP.class.php

    r1974931 r2215869  
    151151   
    152152    $emails = preg_split("/[\s,]+/",$mpStored['email']) ; $memberEmail = $emails[0];  // take first email address on the line
     153
     154    if (empty(trim($memberEmail)))
     155      throw new Exception ("We do not have an email address for " . $mpInfo['full_name']);
     156       
     157    if ($memberEmail == 'unpublished')   // test postcode SO40 0SN
     158      throw new Exception ("There is no published email address for " . $mpInfo['full_name']); 
    153159   
    154160    if (!filter_var($memberEmail, FILTER_VALIDATE_EMAIL))
Note: See TracChangeset for help on using the changeset viewer.