From 05a83a023a4cb48a4c871b479de325993e09560a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 13 Nov 2007 17:44:53 +0000 Subject: [PATCH] do not display Partition maintenance if there are no partitions --- tbl_operations.php | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/tbl_operations.php b/tbl_operations.php index 3b880c4fd..ceec7a610 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -479,6 +479,9 @@ $this_url_params = array_merge($url_params,
@@ -486,24 +489,23 @@ $this_url_params = array_merge($url_params,
' . "\n"; - foreach($partition_names as $one_partition) { - $one_partition = htmlspecialchars($one_partition); - $html_select .= '' . "\n"; - } - $html_select .= '' . "\n"; - printf($GLOBALS['strPartition'], $html_select); - unset($partition_names, $one_partition, $html_select); - $choices = array( - 'ANALYZE' => $strAnalyze, - 'CHECK' => $strCheck, - 'OPTIMIZE' => $strOptimize, - 'REBUILD' => $strRebuild, - 'REPAIR' => $strRepair); - PMA_generate_html_radio('partition_operation', $choices, '', false); - unset($choices); - echo PMA_showMySQLDocu('partitioning_maintenance', 'partitioning_maintenance'); + $html_select = '' . "\n"; + printf($GLOBALS['strPartition'], $html_select); + unset($partition_names, $one_partition, $html_select); + $choices = array( + 'ANALYZE' => $strAnalyze, + 'CHECK' => $strCheck, + 'OPTIMIZE' => $strOptimize, + 'REBUILD' => $strRebuild, + 'REPAIR' => $strRepair); + PMA_generate_html_radio('partition_operation', $choices, '', false); + unset($choices); + echo PMA_showMySQLDocu('partitioning_maintenance', 'partitioning_maintenance'); ?>
@@ -512,6 +514,7 @@ $this_url_params = array_merge($url_params,