mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
Fix notice undefined index charset
This commit is contained in:
parent
b7c53f620e
commit
242ffb2a9e
@ -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…
x
Reference in New Issue
Block a user