diff --git a/server_databases.php b/server_databases.php index 98a42ea62..3edd0b8cc 100644 --- a/server_databases.php +++ b/server_databases.php @@ -174,9 +174,11 @@ if ($databases_count > 0) { echo '
' . "\n"; echo PMA_generate_common_hidden_inputs($_url_params); - echo PMA_pageselector('server_databases.php?', 100, - ($pos / $GLOBALS['cfg']['MaxDbList']) + 1, - $databases_count / $GLOBALS['cfg']['MaxDbList']); + echo PMA_pageselector( + 'server_databases.php' . PMA_generate_common_url($_url_params) . '&', + $GLOBALS['cfg']['MaxDbList'], + floor($pos+1 / $GLOBALS['cfg']['MaxDbList']) + 1, + ceil($databases_count / $GLOBALS['cfg']['MaxDbList'])); echo '
'; if ($pos + $GLOBALS['cfg']['MaxDbList'] < $databases_count) {