From 5f689176b177e053be5797663923c3ca9a0bbd7a Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 16 Jan 2014 16:19:05 +0000 Subject: [PATCH] 2014-01-16 Miguel de Dios * general/header.php: fixed the PHP notices about the var $search_keywords. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9329 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/general/header.php | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0da6e6ae51..cd71a1d00f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-01-16 Miguel de Dios + + * general/header.php: fixed the PHP notices about the var + $search_keywords. + 2014-01-16 Ramon Novoa * godmode/alerts/alert_list.list.php, diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index cc19077a28..15c43e7b60 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -216,10 +216,15 @@ config_check(); // Search bar $search_bar = '
'; - if (strlen($config['search_keywords']) == 0) + if (!isset($config['search_keywords'])) { $search_bar .= ''; - else - $search_bar .= ''; + } + else { + if (strlen($config['search_keywords']) == 0) + $search_bar .= ''; + else + $search_bar .= ''; + } $search_bar .= '