summaryrefslogtreecommitdiff
path: root/includes/pager.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-23 21:33:24 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-23 21:33:24 +0000
commitb3c8b01d90dda49ea7d05a92b2bea2fb960890eb (patch)
tree693b0029711241b9be2ed2f03a93a41ea9ab7d76 /includes/pager.inc
parent5bd07f4bb241e22a95ac95b201a9f27848737fe6 (diff)
downloadbrdo-b3c8b01d90dda49ea7d05a92b2bea2fb960890eb.tar.gz
brdo-b3c8b01d90dda49ea7d05a92b2bea2fb960890eb.tar.bz2
- Fixed a register globals problem in the pager. Patch by Al. (I also
removed a dead global variable.)
Diffstat (limited to 'includes/pager.inc')
-rw-r--r--includes/pager.inc5
1 files 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
+?>