Skip to content

Commit

Permalink
Merge pull request #256 from vend/bugfix-multi-cluster-dropdown
Browse files Browse the repository at this point in the history
Fix multi-cluster dropdown
  • Loading branch information
vvuksan committed Nov 21, 2014
2 parents 2b7a5fe + 2164f3f commit 1fcd2de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion get_ganglia.php
Expand Up @@ -25,7 +25,7 @@
exit;
}
# If we only have one cluster source, suppress MetaCluster output.
if (count($grid) <= 2 and $context=="meta")
if (count($grid) < 2 and $context=="meta")
{
# Lets look for one cluster (the other is our grid).
foreach($grid as $source)
Expand Down
2 changes: 1 addition & 1 deletion header.php
Expand Up @@ -175,7 +175,7 @@ function make_node_menu($self,
$node_menu .= "<option value=\"\">--Choose a Source\n";
ksort($grid);
foreach ($grid as $k => $v) {
if ($k == $self) continue;
if ($k == $self and $context != 'meta') continue;
if (isset($v['GRID']) and $v['GRID']) {
$url = $v['AUTHORITY'];
$node_menu .="<option value=\"$url\">$k ${conf['meta_designator']}\n";
Expand Down

0 comments on commit 1fcd2de

Please sign in to comment.