From a5e99d1dec0de6450e77758c2d26929ef12c6d62 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 8 May 2005 12:59:08 +0000 Subject: [PATCH] bug #1189664, js error when 2 queries are submitted at once --- ChangeLog | 1 + read_dump.php | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c309d3d2..92f836532 100755 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ $Source$ we are checking privileges * Documentation.html: FAQ 3.13 about the MySQL API having problem dealing with USE followed with a db name containing an hyphen + * read_dump.php: bug #1189664, js error when 2 queries submitted at once 2005-05-08 Olivier Mueller * scripts/upgrade.pl: new script to let unix admins upgrade phpMyadmin diff --git a/read_dump.php b/read_dump.php index 5b61b56a0..96b7c7a99 100644 --- a/read_dump.php +++ b/read_dump.php @@ -417,7 +417,12 @@ if (!empty($id_bookmark) && $action_bookmark == 2) { $message = $strSuccess; } // Loads to target script -if ($goto == 'db_details.php' || $goto == 'tbl_properties.php') { +if ($goto == 'db_details.php' || $goto == 'tbl_properties.php' || $goto == 'tbl_properties_structure.php') { + +// maybe we should do this instead: +//if (strpos(' ' . $goto, 'db_details') == 1 || strpos(' ' . $goto, 'tbl_properties') == 1) { +// but I'm not sure + $js_to_run = 'functions.js'; } if ($goto != 'main.php') {