Fix warning
This commit is contained in:
parent
1624b8636f
commit
f2a4f880ca
@ -1215,6 +1215,7 @@ class DolGraph
|
|||||||
} else {
|
} else {
|
||||||
$textoflegend = $this->Legend[$i];
|
$textoflegend = $this->Legend[$i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($usecolorvariantforgroupby) {
|
if ($usecolorvariantforgroupby) {
|
||||||
$newcolor = $this->datacolor[$arrayofgroupslegend[$i]['stacknum']];
|
$newcolor = $this->datacolor[$arrayofgroupslegend[$i]['stacknum']];
|
||||||
// If we change the stack
|
// If we change the stack
|
||||||
@ -1243,6 +1244,7 @@ class DolGraph
|
|||||||
$bordercolor = 'rgb(' . $newcolor[0] . ', ' . $newcolor[1] . ', ' . $newcolor[2] . ')';
|
$bordercolor = 'rgb(' . $newcolor[0] . ', ' . $newcolor[1] . ', ' . $newcolor[2] . ')';
|
||||||
} else { // We do not use a 'group by'
|
} else { // We do not use a 'group by'
|
||||||
if ($isfunnel) {
|
if ($isfunnel) {
|
||||||
|
$bordercolor == 'null';
|
||||||
if (is_array($this->datacolor[$i])) {
|
if (is_array($this->datacolor[$i])) {
|
||||||
$color = 'rgb(' . $this->datacolor[$i][0] . ', ' . $this->datacolor[$i][1] . ', ' . $this->datacolor[$i][2] . ', 0.9)'; // If datacolor is array(R, G, B)
|
$color = 'rgb(' . $this->datacolor[$i][0] . ', ' . $this->datacolor[$i][1] . ', ' . $this->datacolor[$i][2] . ', 0.9)'; // If datacolor is array(R, G, B)
|
||||||
} else {
|
} else {
|
||||||
@ -1262,9 +1264,9 @@ class DolGraph
|
|||||||
if (strpos($tmp, '-') !== false) $bordercolor = '#' . str_replace('-', '', $tmp); // If $val is '-123'
|
if (strpos($tmp, '-') !== false) $bordercolor = '#' . str_replace('-', '', $tmp); // If $val is '-123'
|
||||||
else $bordercolor = 'null'; // If $val is '123' or '#123'
|
else $bordercolor = 'null'; // If $val is '123' or '#123'
|
||||||
}
|
}
|
||||||
$bordercolor == 'null' ? "'rgba(0,0,0,0.2)'" : "'" . $bordercolor . "'";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$bordercolor == 'null' ? "'rgba(0,0,0,0.2)'" : "'" . $bordercolor . "'";
|
||||||
} else {
|
} else {
|
||||||
$color = 'rgb('.$this->datacolor[$i][0].', '.$this->datacolor[$i][1].', '.$this->datacolor[$i][2].', 0.9)';
|
$color = 'rgb('.$this->datacolor[$i][0].', '.$this->datacolor[$i][1].', '.$this->datacolor[$i][2].', 0.9)';
|
||||||
$bordercolor = $color;
|
$bordercolor = $color;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user