Commit 0e8488db authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Invalid email (for PHP) broke with warning

parent 031e3201
......@@ -7,7 +7,7 @@
<lastUpdate>2020-09-22</lastUpdate>
<author>Denis Chenu</author>
<authorUrl>https://www.sondages.pro</authorUrl>
<version>4.3.0</version>
<version>4.3.1</version>
<license>GNU Affero General Public License</license>
<description><![CDATA[Allow to send token email by cron or sheduled task.]]></description>
</metadata>
......
......@@ -10,7 +10,7 @@
* @copyright 2016-2018 Extract Recherche Marketing <https://dialogs.ca>
* @license AGPL v3
*
* @version 4.3.0
* @version 4.3.1
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......@@ -944,9 +944,12 @@ class sendMailCron extends PluginBase
],
'tid=:tid',
[
':tid' => $iToken->tid,
':tid' => $oToken->tid,
]
);
$oCriteria = clone $baseCriteria;
$oCriteria->compare('tid', ">{$oToken->tid}");
$oToken = Token::model($iSurvey)->find($oCriteria);
continue;
}
$mail = \LimeMailer::getInstance();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment