aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-18 19:28:16 -0800
committerfriendica <info@friendica.com>2013-01-18 19:28:16 -0800
commit27ada18dc5c13591d918cf1bb9132a039f6fb751 (patch)
tree6357968d534c7fd3331309e2f64c51fef6e5fbf9
parent258ca20ee3dbc587e49694f979bbddb69aaa20a3 (diff)
downloadvolse-hubzilla-27ada18dc5c13591d918cf1bb9132a039f6fb751.tar.gz
volse-hubzilla-27ada18dc5c13591d918cf1bb9132a039f6fb751.tar.bz2
volse-hubzilla-27ada18dc5c13591d918cf1bb9132a039f6fb751.zip
fix people search
-rw-r--r--mod/directory.php3
-rw-r--r--mod/dirsearch.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 27b05704c..cd0ab4a48 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -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']) {
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 1b1ad0877..50348bc4a 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -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);