Skip to content

Commit

Permalink
Bug-fixes (CIDRAM/CIDRAM#231).
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Apr 21, 2024
1 parent 9e11463 commit 4c9640f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions modules/phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/

/**
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4c9640f

Please sign in to comment.