<small>{lang}wcf.poll.options.description{/lang}</small>
</dd>
</dl>
- <dl>
- <dt{if $errorField == 'pollEndTime'} class="formError"{/if}>
+ <dl{if $errorField == 'pollEndTime'} class="formError"{/if}>
+ <dt>
<label for="pollEndTime">{lang}wcf.poll.endTime{/lang}</label>
</dt>
<dd>
</small>
{/if}
</dd>
+ </dl>
+ <dl>
+ <dt></dt>
<dd>
<label><input type="checkbox" name="pollIsChangeable" value="1"{if $pollIsChangeable} checked="checked"{/if} /> {lang}wcf.poll.isChangeable{/lang}</label>
</dd>
}
// end time is in the past
- if ($this->pollData['endTime'] != 0 && $this->pollData['endTime'] <= TIME_NOW) {
+ if ($this->pollData['endTime'] != 0 && $this->pollData['endTime'] <= TIME_NOW && ($this->poll === null || $this->poll->endTime != $this->pollData['endTime'])) {
throw new UserInputException('pollEndTime', 'notValid');
}