fixed php 7.2 count error

This commit is contained in:
Ulf Gebhardt 2019-09-04 21:12:04 +02:00
parent aeb8dda647
commit 22e187271f
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -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;