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 ); }