From dca22c00743c1550f30d4331c92638c34c8921cc Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 17 Jun 2023 11:13:58 +0200 Subject: [PATCH] release 0.4.1 --- CHANGELOG.md | 3 +++ _define.php | 6 +++--- dcstore.xml | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26ae8cb..39f8051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +0.4.1 - 2023.06.17 +- fix php7.4 compatibility + 0.4 - 2023.04.24 - fix nullsafe warnings - fix type hint diff --git a/_define.php b/_define.php index d8d9d87..44597f7 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Mail to log', 'Do not send mails but log them', 'Jean-Christian Denis and contributors', - '0.4', + '0.4.1', [ 'requires' => [['core', '2.24']], 'permissions' => dcCore::app()->auth->makePermissions([ @@ -32,9 +32,9 @@ $this->registerModule( ); if (!function_exists('\_mail')) { - function _mail(string $to, string $subject, string $message, string|array $headers = '', ?string $params = null): bool + function _mail(string $to, string $subject, string $message, $headers = '', ?string $params = null): bool { - $headers = is_array($headers) ? implode("\n\t", $headers) : $headers; + $headers = is_array($headers) ? implode("\n\t", $headers) : (is_string($headers) ? $headers : ''); $cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME); $cur->setField('log_table', basename(__DIR__)); diff --git a/dcstore.xml b/dcstore.xml index 814e0ca..6be3370 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Mail to log - 0.4 + 0.4.1 Jean-Christian Denis and contributors Do not send mails but log them - https://github.com/JcDenis/mail2log/releases/download/v0.4/plugin-mail2log.zip + https://github.com/JcDenis/mail2log/releases/download/v0.4.1/plugin-mail2log.zip 2.24 https://plugins.dotaddict.org/dc2/details/mail2log https://github.com/JcDenis/mail2log