From 7c49b8d3e557fac83ee55b85b04dff5f9af3339d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 8 Jan 2014 17:03:21 +0000 Subject: [PATCH] 2014-01-08 Miguel de Dios * general/header.php: fixed the empty action with trying to write some thing in the global search field when it is search anything. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/general/header.php | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fe37c380f6..a2b050ab42 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-01-08 Miguel de Dios + + * general/header.php: fixed the empty action with trying to write + some thing in the global search field when it is search anything. + 2014-01-08 Miguel de Dios * include/functions_gis.php: fixed the agent name label. diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 47f26ab595..cc19077a28 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -212,9 +212,15 @@ config_check(); $table->data[0][9] .= ''; } + + // Search bar $search_bar = '
'; - $search_bar .= ''; + if (strlen($config['search_keywords']) == 0) + $search_bar .= ''; + else + $search_bar .= ''; + $search_bar .= '