use solr for findBook and findBooks
This commit is contained in:
@@ -76,7 +76,7 @@ class BookSearch
|
||||
throw new WebException ("SolrError", $e->getMessage(), -700);
|
||||
}
|
||||
|
||||
$books = isset($results['response']['docs']) ?
|
||||
$books = isset($results['response']['docs']) && $results['response']['docs'] ?
|
||||
array_map(function($o) { return (array) $o; }, $results['response']['docs']) :
|
||||
false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user