From fad70e02a52d0c9d80172c6c61b28f8765856e48 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 30 Aug 2010 11:34:56 -0600 Subject: [PATCH] Ticket #9201: part might not exist --- imp/lib/Contents.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } -- 2.11.0