diff --git a/tbl_relation.php b/tbl_relation.php index 638e8c680f..6854d22c0d 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -210,12 +210,16 @@ if (isset($_REQUEST['destination_foreign'])) { if (substr($tmp_error_create, 1, 4) == '1216' || substr($tmp_error_create, 1, 4) == '1452' ) { + ob_start(); PMA_Util::mysqlDie( $tmp_error_create, $create_query, false, '', false ); + $html_output .= ob_get_contents(); + ob_end_clean(); $html_output .= PMA_Util::showMySQLDocu( 'manual_Table_types', 'InnoDB_foreign_key_constraints' ) . "\n"; + $shown_error = true; } if (substr($tmp_error_create, 1, 4) == '1005') { $message = PMA_Message::error(