From: Michael M Slusarz Date: Mon, 30 Aug 2010 17:34:56 +0000 (-0600) Subject: Ticket #9201: part might not exist X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fad70e02a52d0c9d80172c6c61b28f8765856e48;p=horde.git Ticket #9201: part might not exist --- diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 19a019401..b6efdb10c 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -330,7 +330,8 @@ class IMP_Contents * characters (e.g. euro sign, back quote) not in 8859-1. There * shouldn't be any issue doing this since the additional code points * in 1252 don't map to anything in 8859-1. */ - if (strcasecmp($part->getCharset(), 'ISO-8859-1') === 0) { + if ($part && + (strcasecmp($part->getCharset(), 'ISO-8859-1') === 0)) { $part->setCharset('windows-1252'); }