do not display Partition maintenance if there are no partitions
This commit is contained in:
@@ -479,6 +479,9 @@ $this_url_params = array_merge($url_params,
|
||||
</fieldset>
|
||||
</div>
|
||||
<?php if (PMA_Partition::havePartitioning()) {
|
||||
$partition_names = PMA_Partition::getPartitionNames($db, $table);
|
||||
// show the Partition maintenance section only if we detect a partition
|
||||
if (! is_null($partition_names[0])) {
|
||||
?>
|
||||
<div id="div_partition_maintenance">
|
||||
<form method="post" action="tbl_operations.php">
|
||||
@@ -486,7 +489,6 @@ $this_url_params = array_merge($url_params,
|
||||
<fieldset>
|
||||
<legend><?php echo $strPartitionMaintenance; ?></legend>
|
||||
<?php
|
||||
$partition_names = PMA_Partition::getPartitionNames($db, $table);
|
||||
$html_select = '<select name="partition_name">' . "\n";
|
||||
foreach($partition_names as $one_partition) {
|
||||
$one_partition = htmlspecialchars($one_partition);
|
||||
@@ -513,6 +515,7 @@ $this_url_params = array_merge($url_params,
|
||||
</div>
|
||||
<?php
|
||||
} // end if
|
||||
} // end if
|
||||
|
||||
// Referential integrity check
|
||||
// The Referential integrity check was intended for the non-InnoDB
|
||||
|
Reference in New Issue
Block a user