From 111faf4009ec357bb1342738688b1b0921971190 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 5 Oct 2010 08:04:59 -0400 Subject: [PATCH] bug 3055906 error when running SQL query over AJAX --- libraries/display_tbl.lib.php | 7 +++++-- libraries/mult_submits.inc.php | 4 +++- tbl_row_action.php | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index da8808724..b68e78bc1 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -2085,8 +2085,11 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) echo '' . "\n"; - echo '' . "\n"; + + if (! empty($GLOBALS['url_query'])) { + echo '' . "\n"; + } echo '' . "\n"; diff --git a/libraries/mult_submits.inc.php b/libraries/mult_submits.inc.php index fe614e7a6..e473192c6 100644 --- a/libraries/mult_submits.inc.php +++ b/libraries/mult_submits.inc.php @@ -245,7 +245,9 @@ if (!empty($submit_mult) && !empty($what)) { } if ($what == 'row_delete') { $_url_params['original_sql_query'] = $original_sql_query; - $_url_params['original_url_query'] = $original_url_query; + if (! empty($original_url_query)) { + $_url_params['original_url_query'] = $original_url_query; + } } ?>
diff --git a/tbl_row_action.php b/tbl_row_action.php index 8a9db7a58..d44e808a3 100644 --- a/tbl_row_action.php +++ b/tbl_row_action.php @@ -113,7 +113,9 @@ if (!empty($submit_mult)) { $err_url = 'tbl_row_action.php' . PMA_generate_common_url($GLOBALS['url_params']); if (! isset($_REQUEST['mult_btn'])) { $original_sql_query = $sql_query; - $original_url_query = $url_query; + if (! empty($url_query)) { + $original_url_query = $url_query; + } } require './libraries/mult_submits.inc.php'; $_url_params = $GLOBALS['url_params'];