aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 46feaa2177..660f55c95c 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -851,6 +851,10 @@ else if( $query_keywords != "" || $query_author != "" || $search_id )
$message = preg_replace($orig_word, $replacement_word, $message);
}
+ else
+ {
+ $post_subject = ( $searchset[$i]['post_subject'] != "" ) ? $searchset[$i]['post_subject'] : $topic_title;
+ }
if($board_config['allow_smilies'] && $searchset[$i]['enable_smilies'])
{