2010-09-27 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/graph_builder.graph_editor.php godmode/reporting/graph_builder.preview.php: Fixed few foreach loops to avoid notices setting empty array to false variables git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e7601bc9e7
commit
42123bccc3
|
@ -1,3 +1,10 @@
|
|||
2010-09-27 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/reporting/graph_builder.graph_editor.php
|
||||
godmode/reporting/graph_builder.preview.php: Fixed few
|
||||
foreach loops to avoid notices setting empty array to
|
||||
false variables
|
||||
|
||||
2010-09-27 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* godmode/users/user_list.php, godmode/users/configure_user.php:
|
||||
|
|
|
@ -51,6 +51,10 @@ if ($editGraph) {
|
|||
$weight_array = array();
|
||||
$agent_array = array();
|
||||
|
||||
if($graphRows === false) {
|
||||
$graphRows = array();
|
||||
}
|
||||
|
||||
foreach ($graphRows as $graphRow) {
|
||||
$idgs_array[] = $graphRow['id_gs'];
|
||||
$module_array[] = $graphRow['id_agent_module'];
|
||||
|
|
|
@ -72,6 +72,10 @@ $module_array = array();
|
|||
$weight_array = array();
|
||||
$agent_array = array();
|
||||
|
||||
if($graphRows === false) {
|
||||
$graphRows = array();
|
||||
}
|
||||
|
||||
foreach ($graphRows as $graphRow) {
|
||||
$module_array[] = $graphRow['id_agent_module'];
|
||||
$weight_array[] = $graphRow['weight'];
|
||||
|
|
Loading…
Reference in New Issue