From c0c5723b2038d30ab4f19d4a291770edf1c3779b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 2 Feb 2011 13:44:33 +0100 Subject: [PATCH] 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. --- navigation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/navigation.php b/navigation.php index 8c2b65c2a..c162aa2ad 100644 --- a/navigation.php +++ b/navigation.php @@ -308,7 +308,10 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { .'' . _pgettext('short form', 'Create table') . '' . _pgettext('short form', 'Create table') . ''; } elseif ($GLOBALS['cfg']['LeftFrameLight']) { - echo '

' . __('Please select a database') . '

'; + /* No need to tell user to select database if we're showing complete list */ + if (!$list) { + echo '

' . __('Please select a database') . '

'; + } } else { echo '
' . "\n"; $_url_params = array('pos' => $pos); -- 2.11.4.GIT