Skip to content
Snippets Groups Projects
Commit b3c8b01d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

  removed a dead global variable.)
parent 5bd07f4b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -282,7 +282,8 @@ function pager_list($limit, $element = 0, $quantity = 5, $text = "", $attributes ...@@ -282,7 +282,8 @@ function pager_list($limit, $element = 0, $quantity = 5, $text = "", $attributes
*/ */
function pager_query($query, $limit = 10, $element = 0, $count_query = "") { 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: // count the total number of records in this query:
if ($count_query == "") { if ($count_query == "") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment