Fixed bug with 'start page = 0?cmd=Last

SVN revision: 796
This commit is contained in:
Stefan Ritt 2004-02-26 13:00:27 +00:00
parent 789530c569
commit 1805594155

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.267 2004/02/26 13:00:27 midas
Fixed bug with 'start page = 0?cmd=Last
Revision 1.266 2004/02/26 12:41:42 midas Revision 1.266 2004/02/26 12:41:42 midas
Fixed bug in el_decode, added <label> to buttons Fixed bug in el_decode, added <label> to buttons
@ -13543,10 +13546,9 @@ void show_elog_message(LOGBOOK * lbs, char *dec_path, char *command)
if (strieq(command, loc("First"))) if (strieq(command, loc("First")))
message_id = el_search_message(lbs, EL_FIRST, 0, FALSE); message_id = el_search_message(lbs, EL_FIRST, 0, FALSE);
if (!message_id) { /* avoid display of "invalid id '0'", if "start page = 0?cmd=Last" */
redirect(lbs, ""); if (!message_id)
return; dec_path[0] = 0;
}
first = TRUE; first = TRUE;
do { do {