bug #2113848 [navi] Page number after database switching

This commit is contained in:
Marc Delisle
2008-09-21 13:02:41 +00:00
parent af1fcb2a33
commit c4c683bb64
3 changed files with 6 additions and 3 deletions

View File

@@ -109,6 +109,7 @@ danbarry
contains accents
+ [lang] Spanish update, thanks to Daniel Hinostroza
+ [lang] Hungarian update, thanks to Jozsef Tamas Herczeg - dodika
- bug #2113848 [navi] Page number after database switching
2.11.9.1 (2008-09-15)
- [security] Code execution vulnerability, thanks to Norman Hippert

View File

@@ -45,8 +45,9 @@ require_once './libraries/common.inc.php';
/**
* limits for table list
*/
if (! isset($_SESSION['userconf']['table_limit_offset'])) {
if (! isset($_SESSION['userconf']['table_limit_offset']) || $_SESSION['userconf']['table_limit_offset_db'] != $db) {
$_SESSION['userconf']['table_limit_offset'] = 0;
$_SESSION['userconf']['table_limit_offset_db'] = $db;
}
if (isset($_REQUEST['pos'])) {
$_SESSION['userconf']['table_limit_offset'] = (int) $_REQUEST['pos'];

View File

@@ -63,8 +63,9 @@ function PMA_exitNavigationFrame()
if (! isset($_SESSION['userconf']['navi_limit_offset'])) {
$_SESSION['userconf']['navi_limit_offset'] = 0;
}
if (! isset($_SESSION['userconf']['table_limit_offset'])) {
$_SESSION['userconf']['table_limit_offset'] = 0;
if (! isset($_SESSION['userconf']['table_limit_offset']) || $_SESSION['userconf']['table_limit_offset_db'] != $db) {
$_SESSION['userconf']['table_limit_offset'] = 0;
$_SESSION['userconf']['table_limit_offset_db'] = $db;
}
if (isset($_REQUEST['pos'])) {
if (isset($_REQUEST['tpos'])) {