From bd92ddd09e4b2b64b76e5843845f6277c5692c8f Mon Sep 17 00:00:00 2001 From: vgilc Date: Fri, 12 Aug 2011 09:47:07 +0000 Subject: [PATCH] 2011-08-12 Vanessa Gil * operation/agentes/estado_agente.php: Fixed: Agent Search engine fails with blank at the beginning or end. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4727 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/agentes/estado_agente.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5a610d3365..9ca5c7f8ea 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-08-12 Vanessa Gil + + * operation/agentes/estado_agente.php: Fixed: Agent Search engine fails with blank at the beginning or end. + 2011-08-12 Javier Lanz * operation/agentes/exportdata.php: Fixed table style to page width diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 1b18367831..f06b064564 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -116,7 +116,7 @@ while ($row = db_get_all_row_by_steps_sql($first, $result, "SELECT * FROM tgrupo // Take some parameters (GET) $group_id = (int) get_parameter ("group_id", 0); -$search = io_safe_output(get_parameter ("search", "")); +$search = trim(io_safe_output(get_parameter ("search", ""))); $offset = get_parameter('offset', 0); $refr = get_parameter('refr', 0); $recursion = get_parameter('recursion', 0);