diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7c524aa80f..ad5a041d5d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-09-01 Miguel de Dios + + * include/functions_agents.php: added the other part of logical expression + in the patch of strstr. + 2011-09-01 Miguel de Dios * include/functions_users.php: added the function "users_get_first_group" diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index f465757ba3..8a46e786c6 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1011,7 +1011,7 @@ function agents_get_modules ($id_agent = null, $details = false, $filter = false } } //else if (strstr($value, '666=666', true) == '') { - else if (substr ($value, 0, strpos ($value, '666=666'))){ + else if (substr ($value, 0, strpos ($value, '666=666')) == '') { switch ($config['dbtype']) { case "mysql": case "postgresql":