aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/search
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2019-12-24 00:33:44 +0100
committer3D-I <480857+3D-I@users.noreply.github.com>2019-12-24 00:34:27 +0100
commit16070b55435d78013aea2eaa004b8ae8b4b5cd3b (patch)
treeeb5ddee8e0f7037bba7c0cc63e38f082e71c9c19 /phpBB/phpbb/search
parent0afd410ae7917eefe4750fbe8f0878f92a4063b7 (diff)
downloadforums-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.php2
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('&quot;', '"', $this->search_query)), $this->indexes);
// Could be connection to localhost:9312 failed (errno=111,