diff --git a/api/app/Http/Controllers/ProgramController.php b/api/app/Http/Controllers/ProgramController.php index 7310bca..d561525 100644 --- a/api/app/Http/Controllers/ProgramController.php +++ b/api/app/Http/Controllers/ProgramController.php @@ -14,7 +14,7 @@ class ProgramController extends Controller `schedule`.`startdate`, `schedule`.`startday`, `schedule`.`starttime`, `schedule`.`enddate`, `schedule`.`endday`, `schedule`.`endtime`, `schedule`.`shortnamesuffix` AS `suffix`, `schedule`.`state` AS `state` FROM `programs_schedule` AS `schedule` LEFT JOIN `programs` ON `schedule`.`program` = `programs`.`id` - WHERE ((`schedule`.`startdate` IS NULL) OR (`schedule`.`startdate` < :enddate)) AND + WHERE ((`schedule`.`startdate` IS NULL) OR (`schedule`.`startdate` <= :enddate)) AND ((`schedule`.`enddate` IS NULL) OR (`schedule`.`enddate` >= :startdate)) AND `schedule`.`active` = 1 AND `schedule`.`final` = 1