bug #2202709 [core] Re-login causes PMA to forget current table name

This commit is contained in:
Marc Delisle
2008-11-27 18:27:01 +00:00
parent d88067ee54
commit f018bf14ec
2 changed files with 7 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- patch #2242765 [core] Navi panel server links wrong,
thanks to Martin Stricker - martinstricker
- bug #2186823 [core] bad session.save_path not detected
- bug #2202709 [core] Re-login causes PMA to forget current table name
3.1.0.0 (not yet released)
+ [auth] Support for Swekey hardware authentication,

View File

@@ -60,7 +60,12 @@ require_once './libraries/file_listing.php';
* (at this point, $GLOBALS['goto'] will be set but could be empty)
*/
if (empty($GLOBALS['goto'])) {
$GLOBALS['goto'] = 'db_sql.php';
if (strlen($table)) {
// avoid a problem (see bug #2202709)
$GLOBALS['goto'] = 'tbl_sql.php';
} else {
$GLOBALS['goto'] = 'db_sql.php';
}
}
/**
* @todo check if we could replace by "db_|tbl_" - please clarify!?