Do not show 'Please select a database' when it is obvious.

This makes sense when there is select box, but for list it is not
needed.
This commit is contained in:
Michal Čihař
2011-02-02 13:44:33 +01:00
parent 30954728f3
commit c0c5723b20

View File

@@ -308,7 +308,10 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
.'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_snewtbl.png" id="icon_newtable" width="10" height="10" alt="' . _pgettext('short form', 'Create table') . '" />'
. _pgettext('short form', 'Create table') . '</a></li></ul>';
} elseif ($GLOBALS['cfg']['LeftFrameLight']) {
echo '<p>' . __('Please select a database') . '</p>';
/* No need to tell user to select database if we're showing complete list */
if (!$list) {
echo '<p>' . __('Please select a database') . '</p>';
}
} else {
echo '<div id="databaseList">' . "\n";
$_url_params = array('pos' => $pos);