From 99a223a5ad0546c60620ed7dbd72e6bbbcc2ec8e Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 3 Jun 2019 11:28:39 -0600 Subject: [PATCH] Calendar - Only send update notifications if the event is in the future --- calendar/inc/class.calendar_boupdate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 34be304cc2..8806a435bd 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -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) {