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
14ee5f4171
commit
2ea5dd1dce
|
@ -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>
|
||||
|
||||
* 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) . ")";
|
||||
$id_agent = db_get_all_rows_sql($sql);
|
||||
|
||||
if($id_agent == false) {
|
||||
$id_agent = array();
|
||||
}
|
||||
|
||||
$temp = array();
|
||||
foreach ($id_agent as $item) {
|
||||
$temp[] = $item['id_agente'];
|
||||
|
|
Loading…
Reference in New Issue