diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fb1be131bf..f12b85ef32 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-09-01 Juan Manuel Ramon + + * include/functions_agents.php: changed function strstr() for + substr() in agents_get_modules function. + 2011-09-01 Sergio Martin * extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added delete_pending diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 01b072129e..f465757ba3 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1010,7 +1010,8 @@ function agents_get_modules ($id_agent = null, $details = false, $filter = false break; } } - else if (strstr($value, '666=666', true) == '') { + //else if (strstr($value, '666=666', true) == '') { + else if (substr ($value, 0, strpos ($value, '666=666'))){ switch ($config['dbtype']) { case "mysql": case "postgresql":