mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem with empty logbooks
SVN revision: 210
This commit is contained in:
parent
215adf2e4c
commit
199a2d0e1c
5
elogd.c
5
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 2.65 2002/08/06 13:41:40 midas
|
||||||
|
Fixed problem with empty logbooks
|
||||||
|
|
||||||
Revision 2.64 2002/08/06 12:26:20 midas
|
Revision 2.64 2002/08/06 12:26:20 midas
|
||||||
Fixed crash for logbooks without a password file
|
Fixed crash for logbooks without a password file
|
||||||
|
|
||||||
@ -6260,7 +6263,7 @@ MSG_LIST *msg_list;
|
|||||||
i_start = (page_n - 1) * n_page;
|
i_start = (page_n - 1) * n_page;
|
||||||
i_stop = i_start + n_page - 1;
|
i_stop = i_start + n_page - 1;
|
||||||
|
|
||||||
if (i_start >= n_msg)
|
if (i_start >= n_msg && n_msg > 0)
|
||||||
{
|
{
|
||||||
show_error("Page doesn't exist");
|
show_error("Page doesn't exist");
|
||||||
free(msg_list);
|
free(msg_list);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user