From af68030fcf0c266300feb2c100149ecadef7d364 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Jul 2006 01:50:23 +0000 Subject: Merge from 3.0 branch till 1264. --- demos/blog/protected/Pages/SearchPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/blog/protected/Pages') diff --git a/demos/blog/protected/Pages/SearchPost.php b/demos/blog/protected/Pages/SearchPost.php index 53e8401c..a824d257 100644 --- a/demos/blog/protected/Pages/SearchPost.php +++ b/demos/blog/protected/Pages/SearchPost.php @@ -21,7 +21,7 @@ class SearchPost extends BlogPage foreach($keywords as $keyword) { if(($keyword=$this->DataAccess->escapeString(trim($keyword)))!=='') - $filter.=" AND content LIKE '%$keyword%'"; + $filter.=" AND (content LIKE '%$keyword%' OR title LIKE '%$keyword%')"; } return $filter; } -- cgit v1.2.3