Merge pull request #96 from gpilla/master

Added check on Message::processAddressObject()
This commit is contained in:
Robert Hafner 2015-02-05 23:29:37 -08:00
commit 4adad3f685

View File

@ -623,10 +623,13 @@ class Message
$outputAddresses = array();
if (is_array($addresses))
foreach ($addresses as $address) {
if (property_exists($address, 'mailbox') && $address->mailbox != 'undisclosed-recipients') {
$currentAddress = array();
$currentAddress['address'] = $address->mailbox . '@' . $address->host;
if (isset($address->personal))
if (isset($address->personal)) {
$currentAddress['name'] = $address->personal;
}
}
$outputAddresses[] = $currentAddress;
}