diff --git a/ChangeLog b/ChangeLog index 79e0c49d7..3d4e3900b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ $Source$ * db_details*.php3; mult_submits.inc.php3; sql.php3: splitted the large "database details" page in parts. * tbl_properties_links.php3: optimized (less server work). + * tbl_dump.php3, lines 308-309: exporting a database with one table from + the "database details" page doesn't export the table. 2002-04-30 Loïc Chapeaux * lang/italian.inc.php3: updated thanks to Pietro Danesi. diff --git a/tbl_dump.php3 b/tbl_dump.php3 index e91c34a8e..b6181aa41 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -190,7 +190,7 @@ if (!isset($table)) { if ($num_tables == 0) { echo '# ' . $strNoTablesFound; } -// At least on table -> do the work +// At least one table -> do the work else { // No csv or xml format -> add some comments at the top if ($what != 'csv' && $what != 'excel' && $what != 'xml') { @@ -305,7 +305,8 @@ else { if (!isset($single)) { $table = mysql_tablename($tables, $i); } - if ((isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|')) || isset($single)) { + if ((isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|')) + || !empty($table)) { $dump_buffer .= PMA_getTableXML($db, $table, $crlf, $err_url) . $crlf; } $i++;