aboutsummaryrefslogtreecommitdiff
path: root/mod/search
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-15 11:13:09 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-15 11:13:09 -0700
commitf5a4d14ed70af150a9ad156e4ff0b37ab555ba0b (patch)
tree7b9c4363084263c642642021dcdd9697e42c0a52 /mod/search
parenta9037b5d853d8289d3fc860a1d451929e84ad486 (diff)
downloadelgg-f5a4d14ed70af150a9ad156e4ff0b37ab555ba0b.tar.gz
elgg-f5a4d14ed70af150a9ad156e4ff0b37ab555ba0b.tar.bz2
Fixed pagination for search.
Diffstat (limited to 'mod/search')
-rw-r--r--mod/search/views/default/search/list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/search/views/default/search/list.php b/mod/search/views/default/search/list.php
index 571ba17a7..c5249fe77 100644
--- a/mod/search/views/default/search/list.php
+++ b/mod/search/views/default/search/list.php
@@ -37,8 +37,8 @@ $query = http_build_query(
$url = elgg_get_site_url() . "search?$query";
// get pagination
-if (array_key_exists('pagination', $vars) && $vars['pagination']) {
- $nav .= elgg_view('navigation/pagination',array(
+if (array_key_exists('pagination', $vars['params']) && $vars['params']['pagination']) {
+ $nav = elgg_view('navigation/pagination',array(
'baseurl' => $url,
'offset' => $vars['params']['offset'],
'count' => $vars['results']['count'],