summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/Pbs/Graph.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/Pbs/Graph.php b/library/Pbs/Graph.php
index 664c078..06c4943 100644
--- a/library/Pbs/Graph.php
+++ b/library/Pbs/Graph.php
@@ -23,9 +23,12 @@ class Pbs_Graph{
size="5,5";
pad=0.1;
graph[ bgcolor=transparent ];
- node [ style=filled fillcolor="#ffffffff" ];
- "'.$this->getGroupTitle($groupID).'" [ fontcolor="#ffffffff", style=filled, fillcolor="#004A99FF"];
- ';
+ node [ style=filled fillcolor="#ffffffff" ];';
+ if($this->level <0)
+ $this->graphstring .= '"'.$this->getGroupTitle($groupID).'"';
+ else
+ $this->graphstring .= '"'.$this->getGroupTitle($groupID).'" [ fontcolor="#ffffffff", style=filled, fillcolor="#004A99FF"];';
+
if(count($this->childs) >=1){
foreach($this->childs as $childID){
$this->edges[$groupID][$childID] = 1;