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 'sql.php')
-rw-r--r--sql.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/sql.php b/sql.php
index 6b972d4124..9c2e790552 100644
--- a/sql.php
+++ b/sql.php
@@ -54,9 +54,13 @@ if (! empty($goto)) {
}
} else {
if (empty($table)) {
- $goto = $cfg['DefaultTabDatabase'];
+ $goto = PMA_Util::getScriptNameForOption(
+ $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
+ );
} else {
- $goto = $cfg['DefaultTabTable'];
+ $goto = PMA_Util::getScriptNameForOption(
+ $GLOBALS['cfg']['DefaultTabTable'], 'table'
+ );
}
$is_gotofile = true;
} // end if