mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
Fix Stream-Selection in Feedback-Form
This commit is contained in:
parent
97d076912a
commit
5c80bf0c03
1 changed files with 3 additions and 5 deletions
|
@ -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())?>"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue