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>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<?php if (PMA_Partition::havePartitioning()) {
|
<?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">
|
<div id="div_partition_maintenance">
|
||||||
<form method="post" action="tbl_operations.php">
|
<form method="post" action="tbl_operations.php">
|
||||||
@@ -486,7 +489,6 @@ $this_url_params = array_merge($url_params,
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php echo $strPartitionMaintenance; ?></legend>
|
<legend><?php echo $strPartitionMaintenance; ?></legend>
|
||||||
<?php
|
<?php
|
||||||
$partition_names = PMA_Partition::getPartitionNames($db, $table);
|
|
||||||
$html_select = '<select name="partition_name">' . "\n";
|
$html_select = '<select name="partition_name">' . "\n";
|
||||||
foreach($partition_names as $one_partition) {
|
foreach($partition_names as $one_partition) {
|
||||||
$one_partition = htmlspecialchars($one_partition);
|
$one_partition = htmlspecialchars($one_partition);
|
||||||
@@ -513,6 +515,7 @@ $this_url_params = array_merge($url_params,
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
} // end if
|
} // end if
|
||||||
|
} // end if
|
||||||
|
|
||||||
// Referential integrity check
|
// Referential integrity check
|
||||||
// The Referential integrity check was intended for the non-InnoDB
|
// The Referential integrity check was intended for the non-InnoDB
|
||||||
|
Reference in New Issue
Block a user