diff --git a/lib/Service/DisplayNotifyService.php b/lib/Service/DisplayNotifyService.php index bede50cde8..de755e58c5 100644 --- a/lib/Service/DisplayNotifyService.php +++ b/lib/Service/DisplayNotifyService.php @@ -1,8 +1,8 @@ :fromDt) + OR `schedule`.recurrence_range >= :fromDt + OR ( + IFNULL(`schedule`.recurrence_range, 0) = 0 AND IFNULL(`schedule`.recurrence_type, \'\') <> \'\' + ) + ) + UNION SELECT DISTINCT display.DisplayID, 0 AS eventId, 0 AS fromDt,