Declaration of gMapChart::setColors() should be compatible with that of
gChart::setColors()
I'm using gchartphp with Nette framework and it has strict policy against
every possi So my log is full of error messages and even though app
working fine it's annoying.
So, here's method gMapChart::setColors that makes second argument
invisible and is compatible with gChart::setColors
public function setColors($defaultColor) {
$gradientColors = (func_num_args() > 1) ? func_get_arg
(2) : array('0000FF', 'FF0000');
$this -> setProperty('chco', $this->encodeData(array_merge
(array($defaultColor), $gradientColors), ','));
}
Original issue reported on code.google.com by kaj...@k47.cz on 31 May 2010 at 7:39
Original issue reported on code.google.com by
kaj...@k47.cz
on 31 May 2010 at 7:39