diff options
author | xue <> | 2006-07-16 01:50:23 +0000 |
---|---|---|
committer | xue <> | 2006-07-16 01:50:23 +0000 |
commit | af68030fcf0c266300feb2c100149ecadef7d364 (patch) | |
tree | 76b7c8ad5d8227870b9ef10c3e7b92a36336b320 /demos/blog/protected/Pages/SearchPost.php | |
parent | 4b78404c20490a615459267426ce9e6737bf4485 (diff) |
Merge from 3.0 branch till 1264.
Diffstat (limited to 'demos/blog/protected/Pages/SearchPost.php')
-rw-r--r-- | demos/blog/protected/Pages/SearchPost.php | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|