diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-21 08:03:20 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-21 08:03:20 +0000 |
commit | 975bbcebe9c68ac729dd051b008cf6c615d443c2 (patch) | |
tree | 46737108023c5d65797d39f748c53cff0c160e10 /search.php | |
parent | 742f6bfa6a7b285db898da220e1799fbb9b79ded (diff) | |
download | ampache-975bbcebe9c68ac729dd051b008cf6c615d443c2.tar.gz ampache-975bbcebe9c68ac729dd051b008cf6c615d443c2.tar.bz2 ampache-975bbcebe9c68ac729dd051b008cf6c615d443c2.zip |
new interface which breaks all previous themes... and current themes, still under development
Diffstat (limited to 'search.php')
-rw-r--r-- | search.php | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -28,8 +28,6 @@ require_once("modules/init.php"); show_template('header'); -show_menu_items('Search'); -show_clear(); /* Import/Clean vars */ $action = scrub_in($_REQUEST['action']); @@ -43,6 +41,11 @@ switch ($action) { $string_name = $_REQUEST['search_object'][0] . '_string'; $_REQUEST[$string_name] = $_REQUEST['search_string']; unset($string_name); + if (strlen($_REQUEST['search_string']) < 1) { + $GLOBALS['error']->add_error('keyword',_("Error: No Keyword Entered")); + show_template('show_search'); + break; + } case 'search': show_template('show_search'); $results = run_search($_REQUEST); @@ -58,6 +61,6 @@ switch ($action) { break; } -show_clear(); -show_page_footer ('Search', '',$user->prefs['display_menu']); +/* Show the Footer */ +show_footer(); ?> |