aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-18 19:25:28 -0800
committerFriendika <info@friendika.com>2011-01-18 19:25:28 -0800
commitb40281802ffce0b977cb0b1c4d02902ecf82e753 (patch)
tree512b05743036a083b68cce77e64b69475bc66a5d /mod/directory.php
parent028460a5c1de4833bb1dcfaa945c1292952bf923 (diff)
downloadvolse-hubzilla-b40281802ffce0b977cb0b1c4d02902ecf82e753.tar.gz
volse-hubzilla-b40281802ffce0b977cb0b1c4d02902ecf82e753.tar.bz2
volse-hubzilla-b40281802ffce0b977cb0b1c4d02902ecf82e753.zip
personal title
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php
index f70cd6df8..0504ac321 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -40,7 +40,7 @@ function directory_content(&$a) {
if($search)
$search = dbesc($search);
- $sql_extra = ((strlen($search)) ? " AND MATCH (`profile`.`name`, `user`.`nickname`, `locality`,`region`,`country-name`,`gender`,`marital`,`sexual`,`about`,`romance`,`work`,`education`,`keywords` ) AGAINST ('$search' IN BOOLEAN MODE) " : "");
+ $sql_extra = ((strlen($search)) ? " AND MATCH (`profile`.`name`, `user`.`nickname`, `pdesc`, `locality`,`region`,`country-name`,`gender`,`marital`,`sexual`,`about`,`romance`,`work`,`education`,`keywords` ) AGAINST ('$search' IN BOOLEAN MODE) " : "");
$publish = ((get_config('system','publish_all')) ? '' : " AND `publish` = 1 " );
@@ -68,6 +68,9 @@ function directory_content(&$a) {
$profile_link = $a->get_baseurl() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']);
+
+ $pdesc = (($rr['pdesc']) ? $rr['pdesc'] . '<br />' : '');
+
$details = '';
if(strlen($rr['locality']))
$details .= $rr['locality'];
@@ -94,7 +97,7 @@ function directory_content(&$a) {
'$photo' => $rr[$photo],
'$alt-text' => $rr['name'],
'$name' => $rr['name'],
- '$details' => $details
+ '$details' => $pdesc . $details
));