Don't show state-badges for empty nodes

Before, the empty nodes were to be considered as missing nodes. Correspondingly, the counter for missing in BpNode::getStateSummary() was increased if an empty node is encountered.

Now, the empty nodes are not assumed as missing nodes and the counter for missing is not increased for this case.
This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2020-02-27 11:15:40 +01:00 committed by Eric Lippmann
parent 0892d1e90b
commit 32abce2529

View file

@ -11,6 +11,7 @@ class BpNode extends Node
const OP_AND = '&';
const OP_OR = '|';
const OP_NOT = '!';
protected $operator = '&';
protected $url;
protected $info_command;
@ -73,9 +74,6 @@ class BpNode extends Node
$this->counters[$state]++;
}
}
if (! $this->hasChildren()) {
$this->counters['MISSING']++;
}
}
return $this->counters;
}