Commit 7734d2ed by Denis Chenu

[fix] Don't try to send message to empty email

parent 3bfd93e8
Showing with 6 additions and 0 deletions
......@@ -4,7 +4,12 @@ Only partial changelog, [commit history](https://framagit.org/SondagePro-LimeSur
## Not released
### Fix
- Don't try to send message to empty email
### Feature
- Use Token model, allowing to use beforeTokenSave event
- Really allow to use all other plugins in Command
......
......@@ -635,6 +635,7 @@ class sendMailCron extends \ls\pluginmanager\PluginBase
$oCriteria->select = "tid";
/* Always needed condition */
$oCriteria->addCondition("emailstatus = 'OK'");
$oCriteria->addCondition("email != '' and email IS NOT NULL");
$oCriteria->addCondition("token != ''");
$oCriteria->addCondition("(completed = 'N' OR completed = '' OR completed IS NULL)");
$oCriteria->addCondition("usesleft>0");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment