summaryrefslogtreecommitdiffstats
path: root/library/Pbs
diff options
context:
space:
mode:
authorSimon2011-04-15 18:50:53 +0200
committerSimon2011-04-15 18:50:53 +0200
commit46274bb93944efe7cec53474079674f20e7b2dfa (patch)
tree34b9ddef8d67f602a187699bdafb1891e58aa05c /library/Pbs
parentTicket #192 - Parent-Nodes werden nicht doppelt gecrawlt (diff)
downloadpbs2-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.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;