Incorrect display in replication status

This commit is contained in:
Marc Delisle
2009-06-18 16:36:37 +00:00
parent f140bb9459
commit 9a994756f8
2 changed files with 12 additions and 12 deletions

View File

@@ -423,19 +423,17 @@ echo sprintf($strServerStatusUptime,
</p>
<?php
if ($server_master_status_run || $server_slave_status_run)
{
$replicationOut = "";
foreach ($replication_types as $type)
{
if ($replicationOut != "")
$replicationOut .= $strAndSmall . ' ';
if (${"server_{$type}_status_run"})
{
$replicationOut .= '<b>' . $type . '</b> ';
if ($server_master_status_run || $server_slave_status_run) {
$replicationOut = "";
foreach ($replication_types as $type) {
if (${"server_{$type}_status_run"}) {
if ($replicationOut != "") {
$replicationOut .= $strAndSmall . ' ';
}
$replicationOut .= '<b>' . $type . '</b> ';
}
}
}
echo sprintf('<p>' . $strReplicationStatusInfo . '</p>', $replicationOut);
echo sprintf('<p>' . $strReplicationStatusInfo . '</p>', $replicationOut);
}
?>