|
From: Paul S. O. <ps...@us...> - 2001-11-17 17:40:22
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv8025
Modified Files:
search.php
Log Message:
Fixed bug #482127 ... problem occurs when no bad word list exists
Index: search.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/search.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** search.php 2001/11/16 17:27:36 1.28
--- search.php 2001/11/17 17:40:19 1.29
***************
*** 1,3 ****
! <?php
/***************************************************************************
* search.php
--- 1,3 ----
! orig_word<?php
/***************************************************************************
* search.php
***************
*** 786,789 ****
--- 786,790 ----
$message = $searchset[$i]['post_text'];
+ $topic_title = $searchset[$i]['topic_title'];
if( $showresults == "posts" )
***************
*** 846,850 ****
if( count($orig_word) )
{
! $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']);
$post_subject = ( $searchset[$i]['post_subject'] != "" ) ? preg_replace($orig_word, $replacement_word, $searchset[$i]['post_subject']) : $topic_title;
--- 847,851 ----
if( count($orig_word) )
{
! $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
$post_subject = ( $searchset[$i]['post_subject'] != "" ) ? preg_replace($orig_word, $replacement_word, $searchset[$i]['post_subject']) : $topic_title;
|