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:
parent
314e558988
commit
46be0a2900
|
@ -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
|
||||
|
|
|
@ -230,7 +230,11 @@ $rgb_color = array();
|
|||
if (!isset($colors))
|
||||
$colors = array();
|
||||
|
||||
foreach($colors as $i => $color) {
|
||||
if (empty($colors)) {
|
||||
$colors = array();
|
||||
}
|
||||
|
||||
foreach($colors as $i => $color) {
|
||||
$rgb['border'] = html_html2rgb($color['border']);
|
||||
$rgb_color[$i]['border']['R'] = $rgb['border'][0];
|
||||
$rgb_color[$i]['border']['G'] = $rgb['border'][1];
|
||||
|
|
Loading…
Reference in New Issue