mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 04:26:02 +03:00
bug fixes
This commit is contained in:
parent
90f8f7c53e
commit
1790a917f4
@ -168,11 +168,11 @@ class Message
|
||||
* @var string
|
||||
*/
|
||||
public static $charset = 'UTF-8';
|
||||
|
||||
|
||||
/**
|
||||
* This value defines the flag set for encoding if the mb_convert_encoding
|
||||
* function can't be found. In this case iconv encoding will be used.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $charsetFlag = '//TRANSLIT';
|
||||
@ -360,7 +360,6 @@ class Message
|
||||
if (!in_array($type, $addressTypes) || !isset($this->$type) || count($this->$type) < 1)
|
||||
return false;
|
||||
|
||||
|
||||
if (!$asString) {
|
||||
if ($type == 'from')
|
||||
return $this->from[0];
|
||||
|
Loading…
Reference in New Issue
Block a user