From 4c9640fc535e9bb4f41419a5c3a9250e415f0891 Mon Sep 17 00:00:00 2001 From: Caleb Mazalevskis Date: Sun, 21 Apr 2024 20:15:52 +0800 Subject: [PATCH] Bug-fixes (CIDRAM/CIDRAM#231). --- modules/modules.yml | 2 +- modules/phpmailer.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/modules.yml b/modules/modules.yml index 3474175..70337d6 100644 --- a/modules/modules.yml +++ b/modules/modules.yml @@ -38,7 +38,7 @@ PHPMailer: Checksum: "bb60757402b60f487ae3f36d711bfa0a4c5fb4e1569be0208b4ce69e6d6d85bd:48507" events/phpmailer.php: From: "https://raw.githubusercontent.com/CIDRAM/CIDRAM-Extras/master/modules/phpmailer.php" - Checksum: "5862c0ed5f9b86e7ec5a82621eca1d48588fd312bc12804b5435a3667da00fb1:7487" + Checksum: "594521c235740d7981526122aa065eeaa9989c2dd689b970e6a37544a9ed43ed:7492" Used with: "events" imports/phpmailer.yml: From: "https://raw.githubusercontent.com/CIDRAM/CIDRAM-Extras/master/modules/phpmailer.yml" diff --git a/modules/phpmailer.php b/modules/phpmailer.php index 764181a..7758b9b 100644 --- a/modules/phpmailer.php +++ b/modules/phpmailer.php @@ -8,7 +8,7 @@ * License: GNU/GPLv2 * @see LICENSE.txt * - * This file: PHPMailer event handlers (last modified: 2023.12.02). + * This file: PHPMailer event handlers (last modified: 2024.04.21). */ /** @@ -62,7 +62,7 @@ * @param array $Data The data used to send the email. * @return bool True on success; False on failure. */ -$this->Events->addHandler('sendEmail', function (string $Blank = '', array $Data): bool { +$this->Events->addHandler('sendEmail', function (string $Blank = '', array $Data = []): bool { /** * @var array $Recipients An array of recipients to send to. * @var string $Subject The subject line of the email.