diff --git a/Sources/Actions/Search2.php b/Sources/Actions/Search2.php index 53218399d6..4c65de61f6 100644 --- a/Sources/Actions/Search2.php +++ b/Sources/Actions/Search2.php @@ -251,9 +251,7 @@ protected function __construct() // Number of pages hard maximum - normally not set at all. Config::$modSettings['search_max_results'] = empty(Config::$modSettings['search_max_results']) ? 200 * Config::$modSettings['search_results_per_page'] : (int) Config::$modSettings['search_max_results']; - if (isset($_REQUEST['start'])) { - $_REQUEST['start'] = (int) $_REQUEST['start']; - } + $_REQUEST['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] - ((int) $_REQUEST['start'] % Config::$modSettings['search_results_per_page']) : 0; Lang::load('Search');