aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirsearch.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-25 16:18:35 -0800
committerfriendica <info@friendica.com>2013-01-25 16:18:35 -0800
commitc96eb6dc971dc74724a2c20fccf02d34dd08d156 (patch)
treed9d578b81b1abd7a882bfc710e85a2a389a5e046 /mod/dirsearch.php
parent318d75a86a3cc4f5a4dcf1278c9a8236c24ac12a (diff)
downloadvolse-hubzilla-c96eb6dc971dc74724a2c20fccf02d34dd08d156.tar.gz
volse-hubzilla-c96eb6dc971dc74724a2c20fccf02d34dd08d156.tar.bz2
volse-hubzilla-c96eb6dc971dc74724a2c20fccf02d34dd08d156.zip
make contact_remove sort of work so I can actually get rid of Oliver's and Michael J's dead contacts and not poll them every ten minutes forever
Diffstat (limited to 'mod/dirsearch.php')
-rw-r--r--mod/dirsearch.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 1dbe60499..7e4323da9 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -71,7 +71,7 @@ function dirsearch_content(&$a) {
// By default we return one page (default 80 items maximum) and do not count total entries
$logic = ((strlen($sql_extra)) ? 0 : 1);
-dbg(1);
+
if($limit)
$qlimit = " LIMIT $limit ";
else {
@@ -91,7 +91,7 @@ dbg(1);
$r = q("SELECT xchan.*, xprof.* from xchan left join xprof on xchan_hash = xprof_hash where $logic $sql_extra and not ( xchan_flags & %d ) $order $qlimit ",
intval(XCHAN_FLAGS_HIDDEN)
);
-dbg(0);
+
$ret['page'] = $page + 1;
$ret['records'] = count($r);