From c464754478e09e6c464c8329ba1bf47e01dfb607 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 1 Jan 2008 13:39:49 +0000 Subject: [PATCH] bug #1814679 [display] Database selection pagination when switching servers --- ChangeLog | 1 + libraries/common.inc.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index bb239807c..2a4683a17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1783620 [parser] Subquery results without "as" are ignored - bug #1821264 [display] MaxTableList and INFORMATION_SCHEMA - bug #1859460 [display] Operations and many databases +- bug #1814679 [display] Database selection pagination when switching servers 2.11.3.0 (2007-12-08) - patch #1818389 to remove a notice (failed to flush buffer), thanks to diff --git a/libraries/common.inc.php b/libraries/common.inc.php index fc6ce8988..26654c5bf 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -847,6 +847,14 @@ if (! defined('PMA_MINIMUM_COMMON')) { require_once './libraries/List_Database.class.php'; $PMA_List_Database = new PMA_List_Database($userlink, $controllink); + /** + * some resetting has to be done when switching servers + */ + if (isset($_SESSION['previous_server']) && $_SESSION['previous_server'] != $GLOBALS['server']) { + unset($_SESSION ['navi_limit_offset']); + } + $_SESSION['previous_server'] = $GLOBALS['server']; + } // end server connecting /**