From 46274bb93944efe7cec53474079674f20e7b2dfa Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 15 Apr 2011 18:50:53 +0200 Subject: Pbs_Graph bei Minuswerten wird nichts eingefärbt --- library/Pbs/Graph.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'library') 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; -- cgit v1.2.3-55-g7522