From 22e187271f60cd47746814df5e6f97f85bd5d4e9 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 4 Sep 2019 21:12:04 +0200 Subject: [PATCH] fixed php 7.2 count error --- lib/Pear/Mail/mimePart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;