mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge remote-tracking branch 'dhruvgoel92/ticket/11437' into develop
* dhruvgoel92/ticket/11437: [ticket/11437] avoid $start becoming negative when no search results are found
This commit is contained in:
commit
8ce7d36f70
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue