diff options
author | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-24 00:33:44 +0100 |
---|---|---|
committer | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-24 00:34:27 +0100 |
commit | 16070b55435d78013aea2eaa004b8ae8b4b5cd3b (patch) | |
tree | eb5ddee8e0f7037bba7c0cc63e38f082e71c9c19 /phpBB/phpbb/search | |
parent | 0afd410ae7917eefe4750fbe8f0878f92a4063b7 (diff) | |
download | forums-16070b55435d78013aea2eaa004b8ae8b4b5cd3b.tar forums-16070b55435d78013aea2eaa004b8ae8b4b5cd3b.tar.gz forums-16070b55435d78013aea2eaa004b8ae8b4b5cd3b.tar.bz2 forums-16070b55435d78013aea2eaa004b8ae8b4b5cd3b.tar.xz forums-16070b55435d78013aea2eaa004b8ae8b4b5cd3b.zip |
[ticket/15902] Out of range error with Sphinx search
Add missing modification.
PHPBB3-15902
Diffstat (limited to 'phpBB/phpbb/search')
-rw-r--r-- | phpBB/phpbb/search/fulltext_sphinx.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/search/fulltext_sphinx.php b/phpBB/phpbb/search/fulltext_sphinx.php index 1f4091791d..e4617903c2 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -675,7 +675,7 @@ class fulltext_sphinx { $start = floor(($result_count - 1) / $per_page) * $per_page; - $this->sphinx->SetLimits((int) $start, (int) $per_page, SPHINX_MAX_MATCHES); + $this->sphinx->SetLimits((int) $start, (int) $per_page, max(SPHINX_MAX_MATCHES, (int) $start + $per_page)); $result = $this->sphinx->Query($search_query_prefix . $this->sphinx->EscapeString(str_replace('"', '"', $this->search_query)), $this->indexes); // Could be connection to localhost:9312 failed (errno=111, |