diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-10-08 22:24:18 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-10-08 22:24:18 +0200 |
commit | 6478e983085ba56af3bf3d7dd9fd9a4a1b48ec8b (patch) | |
tree | 9bc9c91340ed45c4b330632b0c19456ddc016d27 /phpBB/phpbb/search/fulltext_sphinx.php | |
parent | 2de198e30ddb1d9c12dd251f20d5aa57572bd7a0 (diff) | |
parent | 4ac3c545e1b95fb2abfdd6f4343865e7646c978e (diff) | |
download | forums-6478e983085ba56af3bf3d7dd9fd9a4a1b48ec8b.tar forums-6478e983085ba56af3bf3d7dd9fd9a4a1b48ec8b.tar.gz forums-6478e983085ba56af3bf3d7dd9fd9a4a1b48ec8b.tar.bz2 forums-6478e983085ba56af3bf3d7dd9fd9a4a1b48ec8b.tar.xz forums-6478e983085ba56af3bf3d7dd9fd9a4a1b48ec8b.zip |
Merge pull request #5355 from marc1706/ticket/15770
[ticket/15770] Make sure sphinx limits are cast to int
Diffstat (limited to 'phpBB/phpbb/search/fulltext_sphinx.php')
-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 d780442f89..2c2eb84dc7 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -644,7 +644,7 @@ class fulltext_sphinx $this->sphinx->SetFilter('deleted', array(0)); - $this->sphinx->SetLimits($start, (int) $per_page, SPHINX_MAX_MATCHES); + $this->sphinx->SetLimits((int) $start, (int) $per_page, SPHINX_MAX_MATCHES); $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, |