diff options
Diffstat (limited to 'template/assemblies/feedback.phtml')
-rw-r--r-- | template/assemblies/feedback.phtml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/template/assemblies/feedback.phtml b/template/assemblies/feedback.phtml index 65a544a..3c29cfb 100644 --- a/template/assemblies/feedback.phtml +++ b/template/assemblies/feedback.phtml @@ -53,15 +53,13 @@ <select class="form-control" name="stream" id="stream"> <option></option> <? foreach(Room::rooms() as $roomiter): ?> - <? if(!$room->hasFeedback()) continue ?> + <? if(!$roomiter->hasFeedback()) continue ?> <? foreach($roomiter->getSelections() as $selection): ?> <option <? if( + $room && $stream && $roomiter->getSlug() == $room->getSlug() && - ( - !isset($stream) || - ($selection->getSelection() == $stream->getSelection()) - ) + $selection->getSelection() == $stream->getSelection() ): ?>selected<? endif ?> value="<?=h($roomiter->getSlug().'-'.$selection->getSelection())?>" > |