Polls: Fix compatibility with old PHP

This commit is contained in:
veselcraft 2022-10-12 01:01:25 +03:00
parent 9e3b80dcb4
commit dffa6d799e
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -21,9 +21,9 @@
<div n:foreach="$options as $oid => $option" class="poll-option">
<label>
{if $multiple}
<input n:attr="disabled: is_null($thisUser)" type="checkbox" name="option{$oid}" onclick="pollCheckBoxPressed(this)" />
<input n:attr="disabled => is_null($thisUser)" type="checkbox" name="option{$oid}" onclick="pollCheckBoxPressed(this)" />
{else}
<input n:attr="disabled: is_null($thisUser)" type="radio" value="{$oid}" name="vote" onclick="pollRadioPressed(this)" />
<input n:attr="disabled => is_null($thisUser)" type="radio" value="{$oid}" name="vote" onclick="pollRadioPressed(this)" />
{/if}
{$option}