use solr for findBook and findBooks

This commit is contained in:
Gilles Crettenand
2015-06-02 14:39:02 +02:00
parent 590cfd0e6b
commit 6698eca126
2 changed files with 10 additions and 11 deletions

View File

@@ -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;