mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 19:26:01 +03:00
fixed bug in getting reply_to addresses
This commit is contained in:
parent
938f8cf574
commit
916ebb13e9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user