mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-04-05 06:13:36 +03:00
Fix notice undefined index charset
This commit is contained in:
parent
b7c53f620e
commit
242ffb2a9e
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ class Message
|
|||
|
||||
$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);
|
||||
|
||||
if (strtolower($structure->subtype) == 'plain' || $structure->type == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue