From 17bf92a51289c97621cccec1e61380254de2528d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 1 May 2002 20:49:43 +0000 Subject: [PATCH] Exporting a database with one table from the "database details" page doesn't export the table --- ChangeLog | 2 ++ tbl_dump.php3 | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79e0c49d72..3d4e3900b4 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 e91c34a8e8..b6181aa412 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++;