diff --git a/lib/Pear/Mail/mimePart.php b/lib/Pear/Mail/mimePart.php index eec899c..be819d1 100644 --- a/lib/Pear/Mail/mimePart.php +++ b/lib/Pear/Mail/mimePart.php @@ -311,7 +311,7 @@ class Mail_mimePart { $encoded =& $this->encoded; - if (count($this->subparts)) { + if ($this->subparts && count($this->subparts)) { $boundary = $boundary ? $boundary : '=_' . md5(rand() . microtime()); $eol = $this->eol;