fix people search

This commit is contained in:
friendica 2013-01-18 19:28:16 -08:00
parent 258ca20ee3
commit 27ada18dc5
2 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,7 @@ function directory_content(&$a) {
}
if($url) {
$query = $url . ' ?f=' ;
$query = $url . '?f=' ;
if($search)
$query .= '&name=' . urlencode($search);
@ -61,6 +61,7 @@ function directory_content(&$a) {
if($a->pager['page'] != 1)
$query .= '&p=' . $a->pager['page'];
logger('mod_directory: query: ' . $query);
$x = z_fetch_url($query);
if($x['success']) {

View File

@ -72,11 +72,12 @@ function dirsearch_content(&$a) {
}
$order = " ORDER BY `xchan_name` ASC ";
dbg(1);
$r = q("SELECT xchan.*, xprof.* from xchan left join xprof on xchan_hash = xprof_hash where 1 $sql_extra $order LIMIT %d , %d ",
intval($startrec),
intval($perpage)
);
dbg(0);
$ret['page'] = $page + 1;
$ret['records'] = count($r);