fixed bug in getting reply_to addresses

This commit is contained in:
Abdul.Mohsen B. A. A 2013-09-20 01:33:38 +03:00
parent 938f8cf574
commit 916ebb13e9

View File

@ -332,7 +332,8 @@ class Message
*/ */
public function getAddresses($type, $asString = false) public function getAddresses($type, $asString = false)
{ {
$addressTypes = array('to', 'cc', 'bcc', 'from', 'reply-to'); $type = ( $type == 'reply-to' ) ? 'replyTo' : $type;
$addressTypes = array('to', 'cc', 'bcc', 'from', 'replyTo');
if (!in_array($type, $addressTypes) || !isset($this->$type) || count($this->$type) < 1) if (!in_array($type, $addressTypes) || !isset($this->$type) || count($this->$type) < 1)
return false; return false;