Cleanup undefined vars in search.php.

This commit is contained in:
Retro_Guy 2023-07-10 13:38:45 -07:00
parent ac5d85ef2f
commit 1d6042796d
1 changed files with 9 additions and 2 deletions

View File

@ -41,10 +41,14 @@ include "head.inc";
} else {
echo '<td>Search Poster:&nbsp';
}
echo '<input name="terms" type="text" id="terms" value="'.$_GET['terms'].'"></td>';
if(isset($_GET['terms'])) {
echo '<input name="terms" type="text" id="terms" value="'.$_GET['terms'].'"></td>';
} else {
echo '<input name="terms" type="text" id="terms"></td>';
}
echo '</tr><tr></tr><tr><td>';
if ($_GET['searchpoint'] == 'Poster') {
if (isset($_GET['searchpoint']) && $_GET['searchpoint'] == 'Poster') {
if($CONFIG['article_database'] == '1') {
echo '<input type="radio" name="searchpoint" value="body"/>Body&nbsp;';
}
@ -142,6 +146,9 @@ $results=0;
$offset=$CONFIG['timezone'];
}
$overview = array();
if(!isset($group)) {
$group = null;
}
if($_POST['searchpoint'] == 'body') {
$overview = get_body_search($group, $_POST['terms']);
} else {