@@ -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 |