From fe4c479b33f137c435d4eb3d9b37c0be37d31388 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 1 Sep 2011 15:59:19 +0000 Subject: [PATCH] 2011-09-01 Miguel de Dios * include/functions_agents.php: added the other part of logical expression in the patch of strstr. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4883 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_agents.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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":