aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-11-11 10:11:58 +0100
committerDhruv <dhruv.goel92@gmail.com>2013-02-19 00:52:50 +0530
commit16bbdf4a52b2cb2fa4aa2cd607ae726ea1c7af67 (patch)
treee86b3c6a3d1dd845add5c38e47bca311d207ef29 /phpBB/includes
parentbc77ca4d4eb6a5bcf3e47706c6b6fd2b0fe33f82 (diff)
downloadforums-16bbdf4a52b2cb2fa4aa2cd607ae726ea1c7af67.tar
forums-16bbdf4a52b2cb2fa4aa2cd607ae726ea1c7af67.tar.gz
forums-16bbdf4a52b2cb2fa4aa2cd607ae726ea1c7af67.tar.bz2
forums-16bbdf4a52b2cb2fa4aa2cd607ae726ea1c7af67.tar.xz
forums-16bbdf4a52b2cb2fa4aa2cd607ae726ea1c7af67.zip
[ticket/11179] minor fixes
Amends comments to start with capitals. Reinsert blank lines which were not supposed to be removed PHPBB3-11179
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/search/base.php3
-rw-r--r--phpBB/includes/search/fulltext_mysql.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/search/base.php b/phpBB/includes/search/base.php
index 2047742367..914cef9167 100644
--- a/phpBB/includes/search/base.php
+++ b/phpBB/includes/search/base.php
@@ -97,6 +97,7 @@ class phpbb_search_base
function obtain_ids($search_key, &$result_count, &$id_ary, &$start, $per_page, $sort_dir)
{
global $cache;
+
if (!($stored_ids = $cache->get('_search_results_' . $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;
$complete = true;
- // change start parameter in case out of bounds
+ // Change start parameter in case out of bounds
if ($result_count)
{
if ($start < 0)
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 69f76ba99e..ad5119f67c 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -386,6 +386,7 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base
{
return $result_count;
}
+
$id_ary = array();
$join_topic = ($type == 'posts') ? false : true;