Browse Source

Merge branch 'dev'

prodstable
Guillaume 4 years ago
parent
commit
f7eebf0181
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