2011-07-14 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_agents.php: Fixed bad type returned by the function 'agents_get_modules_data_count'. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4567 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5a4a4bb76b
commit
56eaaad116
|
@ -1,3 +1,7 @@
|
||||||
|
2011-07-14 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php: Fixed bad type returned by the function 'agents_get_modules_data_count'.
|
||||||
|
|
||||||
2011-07-14 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2011-07-14 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* include/functions_agents.php: Added "subquery_enterprise" variable
|
* include/functions_agents.php: Added "subquery_enterprise" variable
|
||||||
|
|
|
@ -1183,11 +1183,7 @@ function agents_get_modules_data_count ($id_agent = 0) {
|
||||||
$count["total"] += (int) db_get_sql ($sql, 0, true);
|
$count["total"] += (int) db_get_sql ($sql, 0, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset ($agent_id)) {
|
|
||||||
//If agent_id is not set, it didn't loop through any agents
|
|
||||||
return $count["total"];
|
|
||||||
}
|
|
||||||
return $count; //Return the array
|
return $count; //Return the array
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue