From b8af18053f0e4bd2b2f30d44a0e118a99988ea48 Mon Sep 17 00:00:00 2001 From: Samith Dassanayake Date: Fri, 22 Mar 2013 07:59:13 -0400 Subject: [PATCH] No need to offer index maintenance if foreign key is not supported --- tbl_relation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tbl_relation.php b/tbl_relation.php index 2200cd63cf..0ece707bf0 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -605,7 +605,10 @@ if (count($columns) > 0) { . ''; } // end if (we have columns in this table) -$html_output .= '
'. PMA_getHtmlForDisplayIndexes(); +if (PMA_Util::isForeignKeySupported($tbl_storage_engine)) { + $html_output .= '
' + . PMA_getHtmlForDisplayIndexes(); +} // Render HTML output PMA_Response::getInstance()->addHTML($html_output);