mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 20:36:01 +03:00
Merge pull request #11 from cvasseur/fix-charset-notice
Fix notice undefined index charset
This commit is contained in:
commit
02642b39c4
@ -414,7 +414,7 @@ class Message
|
|||||||
|
|
||||||
$messageBody = self::decode($messageBody, $structure->encoding);
|
$messageBody = self::decode($messageBody, $structure->encoding);
|
||||||
|
|
||||||
if ($parameters['charset'] !== self::$charset)
|
if (!empty($parameters['charset']) && $parameters['charset'] !== self::$charset)
|
||||||
$messageBody = iconv($parameters['charset'], self::$charset, $messageBody);
|
$messageBody = iconv($parameters['charset'], self::$charset, $messageBody);
|
||||||
|
|
||||||
if (strtolower($structure->subtype) == 'plain' || $structure->type == 1) {
|
if (strtolower($structure->subtype) == 'plain' || $structure->type == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user