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 .= '