From b3c8b01d90dda49ea7d05a92b2bea2fb960890eb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 23 May 2003 21:33:24 +0000 Subject: - Fixed a register globals problem in the pager. Patch by Al. (I also removed a dead global variable.) --- includes/pager.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/pager.inc b/includes/pager.inc index 109ce61a7..57dae4046 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -282,7 +282,8 @@ function pager_list($limit, $element = 0, $quantity = 5, $text = "", $attributes */ function pager_query($query, $limit = 10, $element = 0, $count_query = "") { - global $from, $pager_from_array, $db_type, $pager_total; + global $pager_from_array, $pager_total; + $from = $_GET["from"]; // count the total number of records in this query: if ($count_query == "") { @@ -331,4 +332,4 @@ function pager_load_array($value, $element, $old_array) { return $new_array; } -?> \ No newline at end of file +?> -- cgit v1.2.3