Merge pull request #2171 from rabuzarus/1212_directory_fix

fix directory search
This commit is contained in:
Tobias Diekershoff 2015-12-12 05:56:27 +01:00
commit 3c55214f28

View file

@ -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 " );