2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
* include/functions_agents.php: Fixed a bug related to wrong value for a foreach function. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4652 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4276a7a9ac
commit
e162178d82
|
@ -1,3 +1,8 @@
|
||||||
|
2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php: Fixed a bug related to
|
||||||
|
wrong value for a foreach function.
|
||||||
|
|
||||||
2011-07-28 Sergio Martin <sergio.martin@artica.es>
|
2011-07-28 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_networkmap.php: Added new mode to
|
* include/functions_networkmap.php: Added new mode to
|
||||||
|
|
|
@ -920,6 +920,10 @@ function agents_get_modules ($id_agent = null, $details = false, $filter = false
|
||||||
$sql = "SELECT id_agente FROM tagente WHERE id_grupo IN (" . implode(',', $id_groups) . ")";
|
$sql = "SELECT id_agente FROM tagente WHERE id_grupo IN (" . implode(',', $id_groups) . ")";
|
||||||
$id_agent = db_get_all_rows_sql($sql);
|
$id_agent = db_get_all_rows_sql($sql);
|
||||||
|
|
||||||
|
if($id_agent == false) {
|
||||||
|
$id_agent = array();
|
||||||
|
}
|
||||||
|
|
||||||
$temp = array();
|
$temp = array();
|
||||||
foreach ($id_agent as $item) {
|
foreach ($id_agent as $item) {
|
||||||
$temp[] = $item['id_agente'];
|
$temp[] = $item['id_agente'];
|
||||||
|
|
Loading…
Reference in New Issue