From 2fc07a85ed5db90fb9cc5f320e96b2fb68511a11 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 14 Feb 2011 17:57:51 +0000 Subject: [PATCH] 2011-02-14 Miguel de Dios * include/functions_db.php: fixed the module search. Fixes: #3181086 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_db.php | 3 +++ 2 files changed, 9 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 21dedff9a1..b2509583ab 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-02-14 Miguel de Dios + + * include/functions_db.php: fixed the module search. + + Fixes: #3181086 + 2011-02-14 Javier Lanz * godmode/reporting/reporting_builder.main.php: Table size changed to 90% * godmode/reporting/reporting_builder.item_editor.php: Fixed a small diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index a14e295876..ef26f3da07 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -738,6 +738,9 @@ function get_agent_modules ($id_agent, $details = false, $filter = false, $index if ($value[0] == '%') { array_push ($fields, $field.' LIKE "'.$value.'"'); } + else if ($value[0] . $value[1] == '<>') { + array_push($fields, $field.' <> ' . substr($value, 2)); + } else if (substr($value, -1) == '%') { array_push ($fields, $field.' LIKE "'.$value.'"'); }