aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-04 20:57:07 -0700
committerFriendika <info@friendika.com>2011-07-04 20:57:07 -0700
commit20d3aa2e77e4ba4c12d2a7332c7ac5f3a8f6b635 (patch)
tree4c321d73497d6a425c8835e69244ef87dc62962e /mod/search.php
parent308ffe500a7ea4a2e9c55565b0bc7510b4e8bb26 (diff)
downloadvolse-hubzilla-20d3aa2e77e4ba4c12d2a7332c7ac5f3a8f6b635.tar.gz
volse-hubzilla-20d3aa2e77e4ba4c12d2a7332c7ac5f3a8f6b635.tar.bz2
volse-hubzilla-20d3aa2e77e4ba4c12d2a7332c7ac5f3a8f6b635.zip
community page
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/search.php b/mod/search.php
index c20d1274e..d6ab1bb60 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -79,9 +79,12 @@ function search_content(&$a) {
OR `item`.`uid` = %d )
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `profile`.`is-default` = 1
$search_alg
- ORDER BY `parent` DESC ",
+ ORDER BY `received` DESC LIMIT %d , %d ",
intval(local_user()),
- dbesc($search)
+ dbesc($search),
+ intval($a->pager['start']),
+ intval($a->pager['itemspage'])
+
);