Commit b3c8b01d authored by Dries's avatar Dries

- Fixed a register globals problem in the pager. Patch by Al. (I also

  removed a dead global variable.)
parent 5bd07f4b
......@@ -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
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment