2012-02-27 Miguel de Dios <miguel.dedios@artica.es>

* include/graphs/functions_pchart.php: fixed when the var for $colors is a
	other thing distint to array (for example a empty string).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5649 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-02-27 12:25:00 +00:00
parent 314e558988
commit 46be0a2900
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-27 Miguel de Dios <miguel.dedios@artica.es>
* include/graphs/functions_pchart.php: fixed when the var for $colors is a
other thing distint to array (for example a empty string).
2012-02-27 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php: Added call to fs_error_image function

View File

@ -230,6 +230,10 @@ $rgb_color = array();
if (!isset($colors))
$colors = array();
if (empty($colors)) {
$colors = array();
}
foreach($colors as $i => $color) {
$rgb['border'] = html_html2rgb($color['border']);
$rgb_color[$i]['border']['R'] = $rgb['border'][0];