Fix date selection if CHAT_LOG_ARCHIVETIME is -1

This commit is contained in:
Tim Düsterhus 2014-04-13 18:24:49 +02:00
parent 6d0a19a53e
commit 79a22b8d56
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
<dl{if $errorField == 'date'} class="formError"{/if}>
<dt><label for="date">{lang}chat.global.time{/lang}</label></dt>
<dd>
<input id="date" type="date" name="date" min="{TIME_NOW-CHAT_LOG_ARCHIVETIME*60|date:'Y-m-d'}" max="{TIME_NOW|date:'Y-m-d'}" value="{$date|date:'Y-m-d'}" />
<input id="date" type="date" name="date"{if CHAT_LOG_ARCHIVETIME != -1} min="{TIME_NOW-CHAT_LOG_ARCHIVETIME*60|date:'Y-m-d'}"{/if} max="{TIME_NOW|date:'Y-m-d'}" value="{$date|date:'Y-m-d'}" />
{if $errorField == 'date'}
<small class="innerError">
{lang}chat.acp.log.date.error.{$errorType}{/lang}