2014-01-16 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2014-01-16 16:19:05 +00:00
parent e1818581f5
commit 5f689176b1
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-01-16 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php: fixed the PHP notices about the var
$search_keywords.
2014-01-16 Ramon Novoa <rnovoa@artica.es>
* godmode/alerts/alert_list.list.php,

View File

@ -216,10 +216,15 @@ config_check();
// Search bar
$search_bar = '<form method="get" style="display: inline;" name="quicksearch" action="">';
if (strlen($config['search_keywords']) == 0)
if (!isset($config['search_keywords'])) {
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = true; </script>';
else
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = false; </script>';
}
else {
if (strlen($config['search_keywords']) == 0)
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = true; </script>';
else
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = false; </script>';
}
$search_bar .= '<input type="text" id="keywords" name="keywords"';
if (!isset($config['search_keywords']))