mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-10-01 05:05:19 +00:00
Fixed bug with 'start page = 0?cmd=Last
SVN revision: 796
This commit is contained in:
parent
789530c569
commit
1805594155
10
src/elogd.c
10
src/elogd.c
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user