Skip to content

Commit

Permalink
Merge pull request #11 from cvasseur/fix-charset-notice
Browse files Browse the repository at this point in the history
Fix notice undefined index charset
  • Loading branch information
tedivm committed Nov 13, 2012
2 parents b7c53f6 + 242ffb2 commit 02642b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fetch/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ protected function processStructure($structure, $partIdentifier = null)

$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) {
Expand Down

0 comments on commit 02642b3

Please sign in to comment.