Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't rely on grab_globals in tbl_zoom_select

  • Loading branch information...
commit 49b6e4930c31012b4e4a10a92b356f9db3de44a1 1 parent 653f086
Jo Michael authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 tbl_zoom_select.php
View
21 tbl_zoom_select.php
@@ -29,6 +29,26 @@
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js';
$GLOBALS['js_include'][] = 'jquery/timepicker.js';
+/**
+ * Sets globals from $_POST
+ */
+$post_params = array(
+ 'collations',
+ 'dataLabel',
+ 'fields',
+ 'fields_null',
+ 'inputs',
+ 'max_number_of_fields',
+ 'maxPlotLimit',
+ 'types',
+ 'zoom_submit',
+ 'zoomFunc'
+);
+foreach ($post_params as $one_post_param) {
+ if (isset($_POST[$one_post_param])) {
+ $GLOBALS[$one_post_param] = $_POST[$one_post_param];
+ }
+}
/**
* Handle AJAX request for data row on point select
@@ -171,6 +191,7 @@
$foreigners = PMA_getForeigners($db, $table);
$flag = 1;
$tbl_fields_type = $tbl_fields_collation = $tbl_fields_null = array();
+
if (! isset($zoom_submit) && ! isset($inputs)) {
$dataLabel = PMA_getDisplayField($db, $table);
}
Please sign in to comment.
Something went wrong with that request. Please try again.