From 08c0f4e92115f84e381775a42b7d644309be9163 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 31 Oct 2010 05:51:38 -0400 Subject: [PATCH] undefined variables --- js/sql.js | 3 ++- sql.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/sql.js b/js/sql.js index 995c4ac3c..0c39fbee8 100644 --- a/js/sql.js +++ b/js/sql.js @@ -625,7 +625,8 @@ $(document).ready(function() { 'rel_fields_list' : rel_fields_list, 'do_transformations' : transformation_fields, 'transform_fields_list' : transform_fields_list, - 'goto' : 'sql.php' + 'goto' : 'sql.php', + 'submit_type' : 'save' }; $.post('tbl_replace.php', post_params, function(data) { diff --git a/sql.php b/sql.php index f4b3ed485..351fb20d8 100644 --- a/sql.php +++ b/sql.php @@ -677,7 +677,7 @@ if (0 == $num_rows || $is_affected) { if(isset($GLOBALS['display_query'])) { $extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']); } - if ($GLOBALS['reload'] == 1) { + if (isset($GLOBALS['reload']) && $GLOBALS['reload'] == 1) { $extra_data['reload'] = 1; $extra_data['db'] = $GLOBALS['db']; }