mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug when deleting last message in logbook
SVN revision: 156
This commit is contained in:
parent
f12c556b3c
commit
3c7fd1b8dc
7
elogd.c
7
elogd.c
@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$Log$
|
||||
Revision 2.32 2002/06/26 11:44:54 midas
|
||||
Fixed bug when deleting last message in logbook
|
||||
|
||||
Revision 2.31 2002/06/25 12:08:32 midas
|
||||
Version 2.0.3
|
||||
|
||||
@ -1615,6 +1618,8 @@ int i;
|
||||
|
||||
return 0;
|
||||
}
|
||||
if (*lbs->n_el_index == 0)
|
||||
return 0;
|
||||
return lbs->el_index[0].message_id;
|
||||
}
|
||||
|
||||
@ -1628,6 +1633,8 @@ int i;
|
||||
|
||||
return 0;
|
||||
}
|
||||
if (*lbs->n_el_index == 0)
|
||||
return 0;
|
||||
return lbs->el_index[*lbs->n_el_index-1].message_id;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user