aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search_ac.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search_ac.php')
-rw-r--r--mod/search_ac.php33
1 files changed, 17 insertions, 16 deletions
diff --git a/mod/search_ac.php b/mod/search_ac.php
index 5bc3c1c0b..21ff1c9f3 100644
--- a/mod/search_ac.php
+++ b/mod/search_ac.php
@@ -46,22 +46,23 @@ function search_ac_init(&$a){
$x['data'][] = intval($g['id']);
}
}
- else {
-
- $r = q("SELECT `id`, `name`, `photo`, `url` FROM `gcontact` where 1
- $people_sql_extra
- ORDER BY `name` ASC "
- );
-
- if(count($r)) {
- foreach($r as $g) {
- $x['photos'][] = $g['photo'];
- $x['links'][] = $g['url'];
- $x['suggestions'][] = '@' . $g['name'];
- $x['data'][] = intval($g['id']);
- }
- }
- }
+// FIXME - extend search to non-connnections if you couldn't find any connections with that name, use poco or directory
+// else {
+//
+// $r = q("SELECT `id`, `name`, `photo`, `url` FROM `gcontact` where 1
+// $people_sql_extra
+// ORDER BY `name` ASC "
+// );
+
+// if(count($r)) {
+// foreach($r as $g) {
+// $x['photos'][] = $g['photo'];
+// $x['links'][] = $g['url'];
+// $x['suggestions'][] = '@' . $g['name'];
+// $x['data'][] = intval($g['id']);
+// }
+// }
+// }
$r = q("select tid, term, url from term where type = %d $tag_sql_extra order by term asc",
intval(TERM_HASHTAG)