From 7ea01805e4c59b3e5f7ecffdb05450d5bfd7e476 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 23 Jan 2012 17:08:45 +0000 Subject: [PATCH] 2012-01-23 Juan Manuel Ramon * include/functions_agents.php: Removed Php warning in function agents_get_agents. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5406 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_agents.php | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d5fff45e37..c4109ea668 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-01-23 Juan Manuel Ramon + + * include/functions_agents.php: Removed Php warning in function + agents_get_agents. + 2012-01-23 Juan Manuel Ramon * include/functions_agents.php diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index ebba182771..ef0c19b17c 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -317,8 +317,11 @@ function agents_get_agents ($filter = false, $fields = false, $access = 'AR', $o } if(isset($filter['search'])) { - $search = $filter['search']; - unset($filter['search']); + $search = $filter['search']; + unset($filter['search']); + } + else{ + $search = ''; } if(isset($filter['offset'])) {