fix directory search
This commit is contained in:
parent
f479692966
commit
f513b25f6f
1 changed files with 13 additions and 13 deletions
|
@ -57,19 +57,19 @@ function directory_content(&$a) {
|
|||
|
||||
$sql_extra = " AND ((`profile`.`name` LIKE '%$search%') OR
|
||||
(`user`.`nickname` LIKE '%$search%') OR
|
||||
(`pdesc` LIKE '%$search%') OR
|
||||
(`locality` LIKE '%$search%') OR
|
||||
(`region` LIKE '%$search%') OR
|
||||
(`country-name` LIKE '%$search%') OR
|
||||
(`gender` LIKE '%$search%') OR
|
||||
(`marital` LIKE '%$search%') OR
|
||||
(`sexual` LIKE '%$search%') OR
|
||||
(`about` LIKE '%$search%') OR
|
||||
(`romance` LIKE '%$search%') OR
|
||||
(`work` LIKE '%$search%') OR
|
||||
(`education` LIKE '%$search%') OR
|
||||
(`pub_keywords` LIKE '%$search%') OR
|
||||
(`prv_keywords` LIKE '%$search%'))";
|
||||
(`profile`.`pdesc` LIKE '%$search%') OR
|
||||
(`profile`.`locality` LIKE '%$search%') OR
|
||||
(`profile`.`region` LIKE '%$search%') OR
|
||||
(`profile`.`country-name` LIKE '%$search%') OR
|
||||
(`profile`.`gender` LIKE '%$search%') OR
|
||||
(`profile`.`marital` LIKE '%$search%') OR
|
||||
(`profile`.`sexual` LIKE '%$search%') OR
|
||||
(`profile`.`about` LIKE '%$search%') OR
|
||||
(`profile`.`romance` LIKE '%$search%') OR
|
||||
(`profile`.`work` LIKE '%$search%') OR
|
||||
(`profile`.`education` LIKE '%$search%') OR
|
||||
(`profile`.`pub_keywords` LIKE '%$search%') OR
|
||||
(`profile`.`prv_keywords` LIKE '%$search%'))";
|
||||
}
|
||||
|
||||
$publish = ((get_config('system','publish_all')) ? '' : " AND `publish` = 1 " );
|
||||
|
|
Loading…
Reference in a new issue