2014-04-04 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_networkmap.php: fixed the networkmap L2 with
	unknown modules. Thanks Alex.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9723 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2014-04-04 09:39:45 +00:00
parent ac93b78aed
commit 6f0160f82b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-04-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php: fixed the networkmap L2 with
unknown modules. Thanks Alex.
2014-04-03 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php: fixed the PHP warning.

View File

@ -308,12 +308,13 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
$nodes[$node_count] = $agent;
if ($l2_network || $show_snmp_modules) {
$filter = array();
$filter['disabled'] = 0;
// Get agent modules data
$modules = agents_get_modules ($agent['id_agente'], '*', $filter, true, false);
$modules = agents_get_modules($agent['id_agente'], '*',
$filter, true, true);
if ($modules === false)
$modules = array();