diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/BrowZine/Response/RecordCollectionFactory.php b/module/VuFindSearch/src/VuFindSearch/Backend/BrowZine/Response/RecordCollectionFactory.php index 27d4b6d2d95487a0ef74f0aa6c9a6cfe0ebebfb7..37ccb87e5cc0a5ade7d792ae4fd35fbfeaf7288e 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/BrowZine/Response/RecordCollectionFactory.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/BrowZine/Response/RecordCollectionFactory.php @@ -101,7 +101,9 @@ class RecordCollectionFactory implements RecordCollectionFactoryInterface } $collection = new $this->collectionClass($response); foreach ($response['data'] as $doc) { - $collection->add(call_user_func($this->recordFactory, $doc)); + if (isset($doc['id'])) { + $collection->add(call_user_func($this->recordFactory, $doc)); + } } return $collection; }