diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/assemblies/schedule.phtml | 2 | ||||
-rw-r--r-- | template/schedule.phtml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index f913b64..b804196 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -3,7 +3,7 @@ <div class="now"><span>now</span></div> <? $rooms = $schedule->getSchedule() ?> <? foreach($rooms as $roomname => $events): ?> - <div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=round($schedule->getDurationSum() / $schedule->getScale())?>px"> + <div class="room <? if(isset($room) && $roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=round($schedule->getDurationSum() / $schedule->getScale())?>px"> <? $fromstart = 0; ?> <? foreach($events as $event): ?> <div diff --git a/template/schedule.phtml b/template/schedule.phtml new file mode 100644 index 0000000..4363f27 --- /dev/null +++ b/template/schedule.phtml @@ -0,0 +1 @@ +<? require("$assemblies/schedule.phtml") ?> |