@@ -266,8 +266,10 @@ class CronController extends BackendController | |||
]); | |||
foreach ($userArray as $user) { | |||
$mail->setTo($user->email)->send(); | |||
$mailOrdersSend = true; | |||
if($user->email && strlen($user->email) > 0) { | |||
$mail->setTo($user->email)->send(); | |||
$mailOrdersSend = true; | |||
} | |||
} | |||
} | |||