summaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 19:53:24 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 19:53:24 +0000
commitf4812a7921ea60f8519d9d2593d9a667faa14ff6 (patch)
tree6651e43feaeaec24dc511661e01f194f9967e549 /search.php
parentf0f191c0786c329ca30bdfaa7a15fdc10fd2f5a9 (diff)
downloadampache-f4812a7921ea60f8519d9d2593d9a667faa14ff6.tar.gz
ampache-f4812a7921ea60f8519d9d2593d9a667faa14ff6.tar.bz2
ampache-f4812a7921ea60f8519d9d2593d9a667faa14ff6.zip
fixed bug with quick search if nothing entered, Thx Vlet
Diffstat (limited to 'search.php')
-rw-r--r--search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.php b/search.php
index 1781f59a..dce168ab 100644
--- a/search.php
+++ b/search.php
@@ -36,8 +36,8 @@ switch ($_REQUEST['action']) {
$_REQUEST['s_all'] = $_REQUEST['search_string'];
if (strlen($_REQUEST['search_string']) < 1) {
- $GLOBALS['error']->add_error('keyword',_("Error: No Keyword Entered"));
- show_template('show_search');
+ Error::add('keyword',_('Error: No Keyword Entered'));
+ require_once Config::get('prefix') . '/templates/show_search.inc.php';
break;
}
case 'search':