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

@@ -240,7 +240,7 @@ class CronController extends BackendController
->setTo($user->email)
->setFrom([Yii::$app->params['adminEmail'] => 'distrib']);

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

// génération du pdf de commande

Loading…
Cancel
Save