From f513b25f6f3afd99699333282160d5d3aa406884 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sat, 12 Dec 2015 01:27:31 +0100 Subject: [PATCH] fix directory search --- mod/directory.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/mod/directory.php b/mod/directory.php index cb233db898..484858f34d 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -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 " ); -- 2.39.5