diff options
author | friendica <info@friendica.com> | 2012-07-16 19:39:13 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-16 19:39:13 -0700 |
commit | 43a673c11e758f3a0ff79b502ddfcc126e72cde5 (patch) | |
tree | 314d4234a754a6a77135c9878262201cea39d84e /mod/search_ac.php | |
parent | 07c31d547fce54dfdcad34a77f1dfcc6269ef62c (diff) | |
download | volse-hubzilla-43a673c11e758f3a0ff79b502ddfcc126e72cde5.tar.gz volse-hubzilla-43a673c11e758f3a0ff79b502ddfcc126e72cde5.tar.bz2 volse-hubzilla-43a673c11e758f3a0ff79b502ddfcc126e72cde5.zip |
make alt_pager the network page default - at least until we get rid of the network page
Diffstat (limited to 'mod/search_ac.php')
-rw-r--r-- | mod/search_ac.php | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/mod/search_ac.php b/mod/search_ac.php index fb3b872da..5bc3c1c0b 100644 --- a/mod/search_ac.php +++ b/mod/search_ac.php @@ -46,18 +46,20 @@ function search_ac_init(&$a){ $x['data'][] = intval($g['id']); } } - - $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']); + 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']); + } } } |