Only display charset selection when a DB is selected.

This commit is contained in:
Michal Čihař
2003-04-15 13:36:19 +00:00
parent dee67a454a
commit e836694428
2 changed files with 8 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-04-15 Michal Cihar <nijel@users.sourceforge.net>
* tbl_query_box.php3: Only display charset selection when a DB is
selected.
2003-04-15 Garvin Hicking <me@supergarv.de>
* footer.inc.php3, queryframe.php3: Changed anchor target
and window name of queryframe as suggested by Armel

View File

@@ -209,7 +209,10 @@ if (function_exists('PMA_set_enc_form')) {
}
// Charset conversion options
if ($is_upload || $is_upload_dir) {
if (($is_upload || $is_upload_dir) &&
(!isset($is_inside_querywindow) ||
(isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && ($querydisplay_tab == 'files' || $querydisplay_tab == 'full')))
&& isset($db) && $db != ''){
if ($cfg['AllowAnywhereRecoding'] && $allow_recoding) {
echo ' <div style="margin-bottom: 5px">' . "\n";
$temp_charset = reset($cfg['AvailableCharsets']);