aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-03-31 08:40:50 +0200
committerMaZderMind2015-03-31 08:40:50 +0200
commit5c80bf0c039db7b7425b2aff2b34387fc3508be5 (patch)
tree6713eb828170adb16e6769afe86218540bba78d2
parent97d076912a85e031dd4652001ebdc16b454816b9 (diff)
Fix Stream-Selection in Feedback-Form
-rw-r--r--template/assemblies/feedback.phtml8
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())?>"
>