Bugje gefixt in huidige programma indien special

This commit is contained in:
2017-08-12 18:42:23 +02:00
parent e512a837b1
commit cbfd38e1ea

View File

@@ -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