diff options
author | jeff <jeff> | 2006-10-18 00:05:34 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-10-18 00:05:34 +0000 |
commit | f2d53ad396415b5aaba1d6483c75cb605364b644 (patch) | |
tree | c9ff6bea381843cc6dc1ba422fc45069cf91dba1 /httemplate/elements/tr-input-date-field.html | |
parent | 36e5f11acd3d22d4ef63055e46dc8897b7a851ba (diff) |
fix ugly null dates
Diffstat (limited to 'httemplate/elements/tr-input-date-field.html')
-rw-r--r-- | httemplate/elements/tr-input-date-field.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index eb8eee450..0618fc965 100644 --- a/httemplate/elements/tr-input-date-field.html +++ b/httemplate/elements/tr-input-date-field.html @@ -7,7 +7,7 @@ <TR> <TD ALIGN="right"><% $label %></TD> <TD> - <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% time2str($format, $value) %>"> + <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% ($value eq '') ? '' : time2str($format, $value) %>"> <IMG SRC="../images/calendar.png" ID="<% $name %>_button" STYLE="cursor: pointer" TITLE="Select date"> </TD> </TR> |