mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2010-10-07 Sergio Martin <sergio.martin@artica.es>
* include/fgraph.php: Fixed crash when try to render a graph without data git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
0f614e8f63
commit
304b165ddc
@ -1,3 +1,8 @@
|
||||
2010-10-07 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/fgraph.php: Fixed crash when try to render
|
||||
a graph without data
|
||||
|
||||
2010-10-07 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/massive/massive_edit_agents.php: Removed the IP
|
||||
|
@ -229,6 +229,9 @@ function graphic_combined_module ($module_list, $weight_list, $period, $width, $
|
||||
$min_necessary = 2;
|
||||
}
|
||||
|
||||
// Set initial conditions
|
||||
$graph_values[$i] = array();
|
||||
|
||||
// Check available data
|
||||
if (count ($data) < $min_necessary) {
|
||||
continue;
|
||||
@ -240,8 +243,6 @@ function graphic_combined_module ($module_list, $weight_list, $period, $width, $
|
||||
// Event iterator
|
||||
$k = 0;
|
||||
|
||||
// Set initial conditions
|
||||
$graph_values[$i] = array();
|
||||
if ($data[0]['utimestamp'] == $datelimit) {
|
||||
$previous_data = $data[0]['datos'];
|
||||
$j++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user