aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
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'])
+
);