fix: no results returned
This commit is contained in:
@@ -179,8 +179,7 @@ class BookSearch
|
|||||||
$books = array();
|
$books = array();
|
||||||
if(isset($results['response']['docs']) && is_array($results['response']['docs'])) {
|
if(isset($results['response']['docs']) && is_array($results['response']['docs'])) {
|
||||||
foreach($results['response']['docs'] as $r) {
|
foreach($results['response']['docs'] as $r) {
|
||||||
if (!isset($r['id'])) continue;
|
$books[] = $r;
|
||||||
$books[$r['id']] = $r;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user