diff options
author | Simon | 2011-04-15 18:50:53 +0200 |
---|---|---|
committer | Simon | 2011-04-15 18:50:53 +0200 |
commit | 46274bb93944efe7cec53474079674f20e7b2dfa (patch) | |
tree | 34b9ddef8d67f602a187699bdafb1891e58aa05c /library/Pbs | |
parent | Ticket #192 - Parent-Nodes werden nicht doppelt gecrawlt (diff) | |
download | pbs2-46274bb93944efe7cec53474079674f20e7b2dfa.tar.gz pbs2-46274bb93944efe7cec53474079674f20e7b2dfa.tar.xz pbs2-46274bb93944efe7cec53474079674f20e7b2dfa.zip |
Pbs_Graph bei Minuswerten wird nichts eingefärbt
Diffstat (limited to 'library/Pbs')
-rw-r--r-- | library/Pbs/Graph.php | 9 |
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; |