aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-12 20:16:27 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-12 20:16:27 -0700
commit58fd9647a2d8b000c1badc6d180e44c3c0c0f23d (patch)
treee24b0e22afb123b4e7244475281c459b5d07483d /mod/directory.php
parent9a20216e51555cfe53130329a421ed374df16301 (diff)
downloadvolse-hubzilla-58fd9647a2d8b000c1badc6d180e44c3c0c0f23d.tar.gz
volse-hubzilla-58fd9647a2d8b000c1badc6d180e44c3c0c0f23d.tar.bz2
volse-hubzilla-58fd9647a2d8b000c1badc6d180e44c3c0c0f23d.zip
misc fixes
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 4499f0414..094cf028f 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -10,13 +10,13 @@ function directory_content(&$a) {
$tpl .= file_get_contents('view/directory_header.tpl');
$o .= replace_macros($tpl, array(
- '$search' => $search
-
+ '$search' => $search,
+ '$finding' => (strlen($search) ? "<h4>Finding: '$search'</h4>" : "")
));
if($search)
$search = dbesc($search);
- $sql_extra = ((strlen($search)) ? " AND MATCH (`profile`.`name`, `user`.`nickname`, `locality`,`region`,`country-name`,`gender`,`marital`,`sexual`,`about`,`romance`,`employer`,`school`) AGAINST ('$search' IN BOOLEAN MODE) " : "");
+ $sql_extra = ((strlen($search)) ? " AND MATCH (`profile`.`name`, `user`.`nickname`, `locality`,`region`,`country-name`,`gender`,`marital`,`sexual`,`about`,`romance`,`work`,`education`) AGAINST ('$search' IN BOOLEAN MODE) " : "");
$r = q("SELECT COUNT(*) AS `total` FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 AND `publish` = 1 AND `user`.`blocked` = 0 $sql_extra ");