The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 79c35be6 authored by David Maus's avatar David Maus
Browse files

Fix wrong comparism introduced for testing

* VuFindSearch/Backend/Solr/Response/Json/RecordCollectionFactory.php
(__construct): Fix wrong comparism introduced for testing.
parent de171c32
No related merge requests found
......@@ -67,7 +67,7 @@ class RecordCollectionFactory implements RecordCollectionFactoryInterface
*/
public function __construct ($recordFactory = null, $collectionClass = 'VuFindSearch\Backend\Solr\Response\Json\RecordCollection')
{
if (null !== $recordFactory) {
if (null === $recordFactory) {
$this->recordFactory = function ($data) {
return new Record($data);
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment