Fixed warning

This commit is contained in:
fermin831 2018-08-02 13:41:56 +02:00
parent 18800feaae
commit 7b22caaea8
1 changed files with 2 additions and 1 deletions

View File

@ -1739,7 +1739,8 @@ function agents_get_status($id_agent = 0, $noACLs = false) {
// Get all non disabled modules of the agent
$all_modules = db_get_all_rows_filter('tagente_modulo',
$filter_modules, 'id_agente_modulo');
if ($all_modules === false) $all_modules = array();
$result_modules = array();
// Skip non init modules
foreach ($all_modules as $module) {