From 604a903db3561c55aa72ee1e1a244e8b90df513d Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Sun, 17 Feb 2008 01:57:08 +0000 Subject: Fix hrefs after slice since it is much cheaper to operate on the smaller list post slice. Duh! I am WAY too tired. --- search_lib.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/search_lib.php b/search_lib.php index 313e81f..c3b9271 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; + $ret[$content_id]['href'] = BIT_ROOT_URL . "index.php?content_id=" . $data['content_id']; } - /* slice it */ - $ret = array_slice($ret, $pParamHash['offset'], $pParamHash['offset'] + $pParamHash['max_records']); - return $ret; } -- cgit v1.3