Skip to content

Commit

Permalink
update search category list
Browse files Browse the repository at this point in the history
  • Loading branch information
MingChen0919 committed May 23, 2017
1 parent 57e3af6 commit 5185b82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tripal_elasticsearch.module
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,12 @@ function tripal_elasticsearch_block_view($delta = '') {
if(isset($_GET['q'])) {
$path = explode('/', $_GET['q']);
if ($path[0] == 'tripal_elasticsearch' && $path[1] == 'search_website') {
switch (count($_GET)) {
case 3:
switch (count($path)) {
case '3':
$keyword = $path[2];
$block['content'] = get_website_search_results_category_list($keyword);
break;
case 4:
case '4':
$keyword = $path[3];
$block['content'] = get_website_search_results_category_list($keyword);
break;
Expand Down

0 comments on commit 5185b82

Please sign in to comment.