From e27cdc99fadffca5583a6b2153dff276fe00da5c Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 17 Feb 2004 19:49:33 +0000 Subject: [PATCH] Fixed problem with date attributes in conjunction with conditional attributes SVN revision: 782 --- src/elogd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index d4508f38..6b4f61ba 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.257 2004/02/17 19:49:33 midas + Fixed problem with date attributes in conjunction with conditional attributes + Revision 1.256 2004/02/17 11:13:37 midas Added charset for sending files @@ -6098,8 +6101,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL ts.tm_mday = day; ts.tm_hour = 12; - ltime = mktime(&ts); - sprintf(attrib[i], "%d", (int) ltime); + if (month && day) { + ltime = mktime(&ts); + sprintf(attrib[i], "%d", (int) ltime); + } else + strcpy(attrib[i], ""); } else { strlcpy(attrib[i], getparam(ua), NAME_LENGTH);