diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-09-14 15:02:07 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-09-14 15:02:07 +0200 |
commit | 4ac3c545e1b95fb2abfdd6f4343865e7646c978e (patch) | |
tree | 601318be95b9bc89074425644109d4472dc665b1 | |
parent | 1991df95190ca3d401d7b60275159c797caaf5af (diff) | |
download | forums-4ac3c545e1b95fb2abfdd6f4343865e7646c978e.tar forums-4ac3c545e1b95fb2abfdd6f4343865e7646c978e.tar.gz forums-4ac3c545e1b95fb2abfdd6f4343865e7646c978e.tar.bz2 forums-4ac3c545e1b95fb2abfdd6f4343865e7646c978e.tar.xz forums-4ac3c545e1b95fb2abfdd6f4343865e7646c978e.zip |
[ticket/15770] Make sure sphinx limits are cast to int
PHPBB3-15770
-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 e2eeb5f7f3..878c98bf72 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -648,7 +648,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, |