From 758a7ef4d14187d86011d7d1bf809d4a1c26e122 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Fri, 8 Oct 2021 10:26:07 +0200 Subject: [PATCH] related to #1465 max page added to pagination --- include/ws_functions/pwg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ws_functions/pwg.php b/include/ws_functions/pwg.php index c8f7d85b0..bddcc78b9 100644 --- a/include/ws_functions/pwg.php +++ b/include/ws_functions/pwg.php @@ -1015,7 +1015,7 @@ SELECT return array( 'lines' => $result, 'params' => $param, - 'maxPage' => $max_page, + 'maxPage' => ($max_page == 0) ? 1 : $max_page, 'summary' => $search_summary ); }