diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index 4e4c108..d38a1fc 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -41,10 +41,14 @@ include "head.inc"; } else { echo 'Search Poster: '; } - echo ''; + if(isset($_GET['terms'])) { + echo ''; + } else { + echo ''; + } echo ''; -if ($_GET['searchpoint'] == 'Poster') { +if (isset($_GET['searchpoint']) && $_GET['searchpoint'] == 'Poster') { if($CONFIG['article_database'] == '1') { echo 'Body '; } @@ -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 {