From 1b44d7b3b2e135f1527082e1b3dc7deb5c9e6557 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Sun, 17 Feb 2008 00:47:42 +0000 Subject: Move urls before slice since slice resets array keys. --- search_lib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/search_lib.php b/search_lib.php index b156587..313e81f 100644 --- a/search_lib.php +++ b/search_lib.php @@ -1,6 +1,6 @@ $data) { $ret[$content_id]['href'] = BIT_ROOT_URL . "index.php?content_id=" . $content_id; } + /* slice it */ + $ret = array_slice($ret, $pParamHash['offset'], $pParamHash['offset'] + $pParamHash['max_records']); + return $ret; } -- cgit v1.3