bug/error-on-empty-choices

This commit is contained in:
m 2018-04-14 17:47:22 +02:00 committed by Thomas Citharel
parent 53572dbc1f
commit a80602e3d5
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@
</li> </li>
<li class="hide"> <li class="hide">
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " <input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" "
{(isset($selectedNewVotes[$id]) || ("" !== $selectedNewVotes[$id])) ? "" : " checked"} {(isset($selectedNewVotes[$id]) && ("" !== $selectedNewVotes[$id])) ? "" : " checked"}
/> />
</li> </li>
</ul> </ul>

View File

@ -269,7 +269,7 @@
</li> </li>
<li class="hide"> <li class="hide">
<input type="radio" id="n-choice-{$i}" name="choices[{$i}]" value=" " <input type="radio" id="n-choice-{$i}" name="choices[{$i}]" value=" "
{(isset($selectedNewVotes[$i]) || ("" !== $selectedNewVotes[$i])) ? "" : " checked"} {(isset($selectedNewVotes[$i]) && ("" !== $selectedNewVotes[$i])) ? "" : " checked"}
/> />
</li> </li>
</ul> </ul>