fix people search
This commit is contained in:
parent
258ca20ee3
commit
27ada18dc5
@ -53,7 +53,7 @@ function directory_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($url) {
|
if($url) {
|
||||||
$query = $url . ' ?f=' ;
|
$query = $url . '?f=' ;
|
||||||
if($search)
|
if($search)
|
||||||
$query .= '&name=' . urlencode($search);
|
$query .= '&name=' . urlencode($search);
|
||||||
|
|
||||||
@ -61,6 +61,7 @@ function directory_content(&$a) {
|
|||||||
if($a->pager['page'] != 1)
|
if($a->pager['page'] != 1)
|
||||||
$query .= '&p=' . $a->pager['page'];
|
$query .= '&p=' . $a->pager['page'];
|
||||||
|
|
||||||
|
logger('mod_directory: query: ' . $query);
|
||||||
|
|
||||||
$x = z_fetch_url($query);
|
$x = z_fetch_url($query);
|
||||||
if($x['success']) {
|
if($x['success']) {
|
||||||
|
@ -72,11 +72,12 @@ function dirsearch_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$order = " ORDER BY `xchan_name` ASC ";
|
$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 ",
|
$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($startrec),
|
||||||
intval($perpage)
|
intval($perpage)
|
||||||
);
|
);
|
||||||
|
dbg(0);
|
||||||
|
|
||||||
$ret['page'] = $page + 1;
|
$ret['page'] = $page + 1;
|
||||||
$ret['records'] = count($r);
|
$ret['records'] = count($r);
|
||||||
|
Reference in New Issue
Block a user