--- UpdateManager.php 2020-05-05 09:12:15.012945219 -0400 +++ UpdateManager.php.new 2020-05-05 09:46:32.256880154 -0400 @@ -313,11 +313,12 @@ /* Random hour, minute in 4-hour interval; this week's timestamp could be as little as 7D-3H59M after last week's timestamp Allow 1 minute additional margin; 6 days 20 hours = 590400 seconds */ +/* if (!$force && $currenthash === $previoushash && ($lastsent > $currTime - 590400)) { // Not sending, it's a dupe and it's too soon. Pretend we did. return true; } - +*/ $em = new Email(); $em->setTo(array($to)); $em->setFrom($from); @@ -387,10 +388,13 @@ } public function updateEmail($willupdate = false) { + dbug('updateEmail: Checking for updates'); $updates = $this->freepbx->Notifications->list_update(); if (!$updates) { + dbug('updateEmail: No updates found'); return; } + dbug('updateEmail: Updates found, sending email'); $email_subject = sprintf(_("%s Updates Notification (%s)"), $this->brand, $this->machine_id); $email_body = _("Module updates are available.")."\n\n";