diff --git a/ChangeLog b/ChangeLog index 5668311ef5..016cbaf353 100644 --- a/ChangeLog +++ b/ChangeLog @@ -68,6 +68,7 @@ phpMyAdmin - ChangeLog - bug #3392150 [schema] PMA_User_Schema::processUserChoice() is broken - bug #3414744 [core] External link fails in 3.4.5 - patch #3314626 [display] CharTextareaRows is not respected +- bug #3417089 [synchronize] Extraneous db choices 3.4.5.0 (2011-09-14) - bug #3375325 [interface] Page list in navigation frame looks odd diff --git a/server_synchronize.php b/server_synchronize.php index cb04634e37..83acf6b137 100644 --- a/server_synchronize.php +++ b/server_synchronize.php @@ -1167,6 +1167,14 @@ if (! isset($_REQUEST['submit_connect']) $databases = PMA_DBI_get_databases_full(null, false, null, 'SCHEMA_NAME', 'ASC', 0, true); + $databases_to_hide = array( + 'information_schema', + 'mysql' + ); + if (PMA_DRIZZLE) { + $databases_to_hide[] = 'data_dictionary'; + } + if ($GLOBALS['cfg']['AllowArbitraryServer'] === false) { $possibly_readonly = ' readonly="readonly"'; } else { @@ -1273,23 +1281,22 @@ if (! isset($_REQUEST['submit_connect']) $db) { + if (in_array($db['SCHEMA_NAME'], $databases_to_hide)) { + unset($databases[$array_key]); + } else { + $options_list .= ''; + } } if (count($databases) == 0) { echo __('No databases'); } else { - echo ' - '; + echo ''; + unset($options_list); } echo ' ';