diff --git a/mod/directory.php b/mod/directory.php
index 4499f0414f..094cf028f9 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) ? "
Finding: '$search'
" : "")
));
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 ");
diff --git a/view/directory_header.tpl b/view/directory_header.tpl
index 926e6df816..8fc1d2cfcc 100644
--- a/view/directory_header.tpl
+++ b/view/directory_header.tpl
@@ -1,5 +1,7 @@
Site Directory
+$finding
+