Calendar - Only send update notifications if the event is in the future

This commit is contained in:
nathangray 2019-06-03 11:28:39 -06:00
parent 5924b30f2b
commit 99a223a5ad

View File

@ -268,8 +268,8 @@ class calendar_boupdate extends calendar_bo
{
$this->log2file($event2save,$event,$old_event);
}
// send notifications
if(!$skip_notification)
// send notifications if the event is in the future
if(!$skip_notification && $event['end'] > time())
{
if ($new_event)
{