diff --git a/ChangeLog b/ChangeLog index 3937b2397..34adbf596 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-07-02 Marc Delisle + * db_operations.php: undefined $table when copying a db + 2006-06-30 Marc Delisle * libraries/common.lib.php: escape also single quotes ### 2.8.2 released from QA_2_8 diff --git a/db_operations.php b/db_operations.php index 04c373281..423aa4107 100644 --- a/db_operations.php +++ b/db_operations.php @@ -295,7 +295,7 @@ if (!$is_information_schema) { // MySQL supports setting default charsets / collations for databases since // version 4.1.1. echo '
' . "\n" - . PMA_generate_common_hidden_inputs($db, $table) + . PMA_generate_common_hidden_inputs($db, isset($table) ? $table : '') . '
' . "\n" . ' '; if ($cfg['PropertiesIconic']) { @@ -324,8 +324,10 @@ if (!$is_information_schema) { // not sure about leaving the PDF dialog for information_schema -if ($num_tables > 0) { +if ($num_tables > 0 && isset($table)) { $takeaway = $url_query . '&table=' . urlencode($table); +} else { + $takeaway = ''; } if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>