Browse Source

[backend] Correctifs cron : envoi d'emails avec un récap vide

refactoring
Guillaume 4 years ago
parent
commit
2b42ccf654
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/controllers/CronController.php

+ 1
- 1
backend/controllers/CronController.php View File

->setTo($user->email) ->setTo($user->email)
->setFrom([Yii::$app->params['adminEmail'] => 'distrib']); ->setFrom([Yii::$app->params['adminEmail'] => 'distrib']);


if (count($arrayOrders)) {
if (is_array($arrayOrders) && count($arrayOrders)) {
$subject = '[distrib] Commandes du ' . date('d/m', strtotime($date)); $subject = '[distrib] Commandes du ' . date('d/m', strtotime($date));


// génération du pdf de commande // génération du pdf de commande

Loading…
Cancel
Save