/** * Function to check if there is to send any email * * @access public * @return void */ public static function checkSendEmails() { $nMailings = EmailSendQueue::getNMailings(); if ($nMailings > 0) { Cron::sendEmails(); } }