From 106741652c3c13a5977007cdc3b1edb2c9a5576b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 13 Oct 2006 17:09:11 +0000 Subject: [PATCH] select all tables in the export list --- ChangeLog | 2 ++ db_details_export.php | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 45884797c..b33e79b63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $HeadURL$ * css/phpmyadmin.css.php: bug #1517428, some IE 6 versions have problems loading CSS when zlip.output_compression is on, thanks to Juergen Wind + * db_details_export.php: select all tables by default to reflect + the default export behavior 2006-10-13 Michal Čihař * Documentation.html: Mention wiki. diff --git a/db_details_export.php b/db_details_export.php index 8ceea1f3f..6e415260a 100644 --- a/db_details_export.php +++ b/db_details_export.php @@ -40,12 +40,12 @@ foreach ( $tables as $each_table ) { // Don't offer to export views yet. continue; } - if ( ! empty( $selectall ) + if ( ! empty( $unselectall ) || ( isset( $tmp_select ) && false !== strpos( $tmp_select, '|' . $each_table['Name'] . '|') ) ) { - $is_selected = ' selected="selected"'; - } else { $is_selected = ''; + } else { + $is_selected = ' selected="selected"'; } $table_html = htmlspecialchars( $each_table['Name'] ); $multi_values .= '