Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog8
-rw-r--r--read_dump.php4
-rw-r--r--tbl_query_box.php7
3 files changed, 15 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a32c5beefe..974af07a1f 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,7 +5,13 @@ phpMyAdmin - Changelog
$Id$
$Source$
-2004-09-20 Michal Čihař <michal@cihar.com>
+2004-09-22 Marc Delisle <lem9@users.sourceforge.net>
+ * tbl_query_box.php, read_dump.php: bug #1032066: when no db was
+ selected from the left panel, the query window's Import Files had
+ no submit button; also, read_dump always tried a PMA_select_db($db)
+ even if $db was empty
+
+2004-09-22 Michal Čihař <michal@cihar.com>
* lang/czech: Update.
* lang/sync_lang.sh: Default to iconv, as it doesn't break some
translations as recode does.
diff --git a/read_dump.php b/read_dump.php
index f89cf30402..527913de50 100644
--- a/read_dump.php
+++ b/read_dump.php
@@ -254,7 +254,9 @@ if ($sql_query != '') {
}
// Runs multiple queries
- else if (PMA_DBI_select_db($db)) {
+ // (Possibly to create a db, so no db was selected in the
+ // left frame and $db is empty)
+ else if (empty($db) || PMA_DBI_select_db($db)) {
$mult = TRUE;
$info_msg = '';
$info_count = 0;
diff --git a/tbl_query_box.php b/tbl_query_box.php
index 571944860a..9bcaf12fb1 100644
--- a/tbl_query_box.php
+++ b/tbl_query_box.php
@@ -346,11 +346,14 @@ if (function_exists('PMA_set_enc_form')) {
$form_items++;
}
-// Charset conversion options
+// Charset conversion options and submit button
if (($is_upload || $is_upload_dir) &&
(!isset($is_inside_querywindow) ||
(isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && ($querydisplay_tab == 'files' || $querydisplay_tab == 'full')))
- && isset($db) && $db != ''){
+ // It's possible that $db is empty: no db was selected on the left
+ // panel and the user wants to execute a .sql file to create one)
+ // && isset($db) && $db != ''){
+ ){
/*
if ($cfg['AllowAnywhereRecoding'] && $allow_recoding) {
$form_items++;