1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 02:04:35 +02:00
This commit is contained in:
Ryan Cramer
2019-12-03 10:51:42 -05:00
parent 3717224a5c
commit b5aca0e964
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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 <user@example.com"
if($toName) $to = $this->bundleEmailAndName($to, $toName); // bundle to "User Name <user@example.com>"
if($param) {
if(@mail($to, $subject, $body, $header, $param)) $numSent++;
} else {