mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11179] minor fixes
Amends comments to start with capitals. Reinsert blank lines which were not supposed to be removed PHPBB3-11179
This commit is contained in:
parent
bc77ca4d4e
commit
16bbdf4a52
2 changed files with 3 additions and 1 deletions
|
@ -97,6 +97,7 @@ class phpbb_search_base
|
||||||
function obtain_ids($search_key, &$result_count, &$id_ary, &$start, $per_page, $sort_dir)
|
function obtain_ids($search_key, &$result_count, &$id_ary, &$start, $per_page, $sort_dir)
|
||||||
{
|
{
|
||||||
global $cache;
|
global $cache;
|
||||||
|
|
||||||
if (!($stored_ids = $cache->get('_search_results_' . $search_key)))
|
if (!($stored_ids = $cache->get('_search_results_' . $search_key)))
|
||||||
{
|
{
|
||||||
// no search results cached for this search_key
|
// no search results cached for this search_key
|
||||||
|
@ -108,7 +109,7 @@ class phpbb_search_base
|
||||||
$reverse_ids = ($stored_ids[-2] != $sort_dir) ? true : false;
|
$reverse_ids = ($stored_ids[-2] != $sort_dir) ? true : false;
|
||||||
$complete = true;
|
$complete = true;
|
||||||
|
|
||||||
// change start parameter in case out of bounds
|
// Change start parameter in case out of bounds
|
||||||
if ($result_count)
|
if ($result_count)
|
||||||
{
|
{
|
||||||
if ($start < 0)
|
if ($start < 0)
|
||||||
|
|
|
@ -386,6 +386,7 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base
|
||||||
{
|
{
|
||||||
return $result_count;
|
return $result_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_ary = array();
|
$id_ary = array();
|
||||||
|
|
||||||
$join_topic = ($type == 'posts') ? false : true;
|
$join_topic = ($type == 'posts') ? false : true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue