cvs: php4 /pear/Mail mimeDecode.php

From: Date: Sun, 23 Dec 2001 00:13:43 +0000
Subject: cvs: php4 /pear/Mail mimeDecode.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1663@lists.php.net to get a copy of this message
heyesr Sat Dec 22 19:13:43 2001 EDT Modified files: /php4/pear/Mail mimeDecode.php Log: Fixed getXML() method to not barf when no bodies Index: php4/pear/Mail/mimeDecode.php diff -u php4/pear/Mail/mimeDecode.php:1.17 php4/pear/Mail/mimeDecode.php:1.18 --- php4/pear/Mail/mimeDecode.php:1.17 Tue Dec 11 10:31:31 2001 +++ php4/pear/Mail/mimeDecode.php Sat Dec 22 19:13:43 2001 @@ -48,7 +48,7 @@ * perhaps even message/partial. * * @author Richard Heyes <richard@phpguru.org> -* @version $Revision: 1.17 $ +* @version $Revision: 1.18 $ * @package Mail */ @@ -643,7 +643,7 @@ Mail_mimeDecode::_getXML($input->parts[$i], $indent+1) . str_repeat($htab, $indent) . '</mimepart>' . $crlf; } - } else { + } elseif (isset($input->body)) { $output .= $crlf . str_repeat($htab, $indent) . '<body><![CDATA[' . $input->body . ']]></body>' . $crlf; }

« previous php.pear.cvs (#1663) next »