From 5195ab2b981527a9f674c4dbe6313153d3e7be2e Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 4 Nov 2019 16:23:01 +0530 Subject: added index for array to get the value --- solr_search.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr_search.module b/solr_search.module index b945786..a9a4e91 100755 --- a/solr_search.module +++ b/solr_search.module @@ -206,7 +206,7 @@ function ajax_solr_search_result_callback($form, $form_state) foreach ($response['response']->docs as $doc) { $sno++; $output .= '
  • '; - $output .= '

    Book:  ' . $doc->title . ' (' . $doc->author . ')

    '; + $output .= '

    Book:  ' . $doc->title . ' (' . $doc->author[0] . ')

    '; $output .= '

    Chapter:  ' . $doc->chapter[0] . '

    '; $output .= '

    Example:  ' . $doc->example[0] . '

    '; $output .= '

    Links:        Download entire book       » View this example

    '; -- cgit