From 8ff387faf50ce924d6306afcc5e15437edaa72a2 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Asaba Date: Wed, 26 Dec 2007 08:21:28 +0000 Subject: [PATCH] Enable 'return' button if all nodes are detached and a node is active. --- nodeStatus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodeStatus.php b/nodeStatus.php index 10c4a57..c3ff2f8 100644 --- a/nodeStatus.php +++ b/nodeStatus.php @@ -71,7 +71,8 @@ for($i=0; $i<$nodeCount; $i++) { for ($i = 0; $i < $nodeCount; $i++) { if ($node_alive == false) { - if ($isReplicationMode || $isMasterSlaveMode) + if (($isReplicationMode || $isMasterSlaveMode) && + NodeActive($i)) array_push($nodeInfo[$i], 'return'); else array_push($nodeInfo[$i], 'none'); -- 2.39.5