Checked in changes to search so descriptions are searched as well as titles. See bug 334713.

This commit is contained in:
mike.morgan%oregonstate.edu 2006-04-19 21:23:05 +00:00
Родитель 8349600002
Коммит 87b1b37072
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -167,7 +167,8 @@ if (!empty($sql['appfilter'])) {
}
if (!empty($sql['q'])) {
$where .= " main.Name LIKE '%{$sql['q']}%' AND ";
$where .= " (main.name LIKE '%" . preg_replace('/[\s]+/','%',$sql['q']) . "%'
OR main.Description LIKE '%" . preg_replace('/[\s]+/','%',$sql['q']) . "%') AND ";
}
if (!empty($sql['type'])) {