diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-07-03 11:51:28 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-07-03 11:51:28 +0200 |
commit | 8ce7d36f70111fc31f71708742e89a65014eb721 (patch) | |
tree | 1932ca26b3114363bef4abb708a1d160502f2a78 | |
parent | 3c3f203f140848fb84a1e75f2c412ccc567a6cc1 (diff) | |
parent | ffed3d109e25756c4de2116b09d34c4c92d9b61c (diff) | |
download | forums-8ce7d36f70111fc31f71708742e89a65014eb721.tar forums-8ce7d36f70111fc31f71708742e89a65014eb721.tar.gz forums-8ce7d36f70111fc31f71708742e89a65014eb721.tar.bz2 forums-8ce7d36f70111fc31f71708742e89a65014eb721.tar.xz forums-8ce7d36f70111fc31f71708742e89a65014eb721.zip |
Merge remote-tracking branch 'dhruvgoel92/ticket/11437' into develop
* dhruvgoel92/ticket/11437:
[ticket/11437] avoid $start becoming negative when no search results are found
-rw-r--r-- | phpBB/includes/search/fulltext_sphinx.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php index 63e35eb4af..889324bbda 100644 --- a/phpBB/includes/search/fulltext_sphinx.php +++ b/phpBB/includes/search/fulltext_sphinx.php @@ -611,7 +611,7 @@ class phpbb_search_fulltext_sphinx $result_count = $result['total_found']; - if ($start >= $result_count) + if ($result_count && $start >= $result_count) { $start = floor(($result_count - 1) / $per_page) * $per_page; |