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:
zarzuelo 2010-09-27 10:23:04 +00:00
parent e7601bc9e7
commit 42123bccc3
3 changed files with 15 additions and 0 deletions

View File

@ -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:

View File

@ -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'];

View File

@ -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'];