mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed "?npp=0" crash
This commit is contained in:
parent
5abd29f4eb
commit
c1866af75b
@ -20876,8 +20876,13 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
n_page = atoi(str);
|
n_page = atoi(str);
|
||||||
else
|
else
|
||||||
n_page = 20;
|
n_page = 20;
|
||||||
if (isparam("npp"))
|
if (isparam("npp")) {
|
||||||
n_page = atoi(getparam("npp"));
|
n_page = atoi(getparam("npp"));
|
||||||
|
if (n_page < 1)
|
||||||
|
n_page = 1;
|
||||||
|
if (n_page > 100000)
|
||||||
|
n_page = 100000;
|
||||||
|
}
|
||||||
|
|
||||||
if (page_mid) {
|
if (page_mid) {
|
||||||
default_page = 0;
|
default_page = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user