diff --git a/libraries/mult_submits.inc.php b/libraries/mult_submits.inc.php index f5e6d1e7b0..8eddf7db91 100644 --- a/libraries/mult_submits.inc.php +++ b/libraries/mult_submits.inc.php @@ -126,7 +126,9 @@ if (! empty($submit_mult) break; case 'change': include './tbl_alter.php'; - break; + // execution stops here but PMA_Response correctly finishes + // the rendering + exit; case 'browse': // this should already be handled by tbl_structure.php } @@ -343,7 +345,7 @@ if (!empty($submit_mult) && !empty($what)) { } exit; -} elseif ($mult_btn == __('Yes')) { +} elseif (! empty($mult_btn) && $mult_btn == __('Yes')) { /** * Executes the query - dropping rows, columns/fields, tables or dbs */ diff --git a/libraries/tbl_properties.inc.php b/libraries/tbl_properties.inc.php index 9b8351230b..c3224ff3e1 100644 --- a/libraries/tbl_properties.inc.php +++ b/libraries/tbl_properties.inc.php @@ -27,6 +27,16 @@ require_once './libraries/StorageEngine.class.php'; */ require_once './libraries/Partition.class.php'; +/** + * We are in transition between old-style echo and new-style PMA_Response + * so this script generates $html and at the bottom, either echos it + * or uses addHTML on it. + * + * Initialize $html in case this variable was used by a caller + * (yes, this script should be refactored into functions) + */ +$html = ''; + $length_values_input_size = 8; $_form_params = array( @@ -706,7 +716,7 @@ for ($i = 0; $i < $num_fields; $i++) { } } // end for -echo '' +$html .= '' . '' . '// ]]>' . ''; -echo '