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:
Diffstat (limited to 'read_dump.php')
-rw-r--r--read_dump.php4
1 files changed, 3 insertions, 1 deletions
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;