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