From f11915a86ca342c84b54b597e24eadd2c981c0b5 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 14 Apr 2008 13:19:09 +0000 Subject: [PATCH] bug 1941020 undefined index --- tbl_operations.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tbl_operations.php b/tbl_operations.php index dc63e23f9..1c0c0382a 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -432,13 +432,15 @@ $possible_row_formats = array( // does not return a warning // (if the table was compressed, it can be seen on the Structure page) -$current_row_format = strtoupper($showtable['Row_format']); -echo ''; -echo ''; -PMA_generate_html_dropdown('new_row_format', $possible_row_formats[$tbl_type], $current_row_format); -unset($possible_row_formats, $current_row_format); -echo ''; -echo ''; +if (isset($possible_row_formats[$tbl_type])) { + $current_row_format = strtoupper($showtable['Row_format']); + echo ''; + echo ''; + PMA_generate_html_dropdown('new_row_format', $possible_row_formats[$tbl_type], $current_row_format); + unset($possible_row_formats, $current_row_format); + echo ''; + echo ''; +} ?>