From b5aca0e964db81f6a96ba2324ef895e46410ac71 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 3 Dec 2019 10:51:42 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1042 --- wire/core/Wire.php | 2 +- wire/core/WireMail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/core/Wire.php b/wire/core/Wire.php index ed2d4605..dd637561 100644 --- a/wire/core/Wire.php +++ b/wire/core/Wire.php @@ -1196,7 +1196,7 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable { /** * Record a Notice, internal use (contains the code for message, warning and error methods) * - * @param string $text|array|Wire Title of notice + * @param string|array|Wire $text Title of notice * @param int $flags Flags bitmask * @param string $name Name of container * @param string $class Name of Notice class diff --git a/wire/core/WireMail.php b/wire/core/WireMail.php index 9350c50a..320d1a1a 100644 --- a/wire/core/WireMail.php +++ b/wire/core/WireMail.php @@ -610,7 +610,7 @@ class WireMail extends WireData implements WireMailInterface { foreach($this->to as $to) { $toName = isset($this->mail['toName'][$to]) ? $this->mail['toName'][$to] : ''; - if($toName) $to = $this->bundleEmailAndName($to, $toName); // bundle to "User Name bundleEmailAndName($to, $toName); // bundle to "User Name " if($param) { if(@mail($to, $subject, $body, $header, $param)) $numSent++; } else {