File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ protected function verbGetRecord()
390390 */
391391 protected function verbIdentify ()
392392 {
393- $ library = $ this ->libraryRepository ->findByUid ($ this ->settings ['library ' ]);
393+ $ library = $ this ->libraryRepository ->findByUid ($ this ->settings ['library ' ] ?? 0 );
394394
395395 $ oaiIdentifyInfo = [];
396396
@@ -642,7 +642,12 @@ protected function fetchDocumentSet(): array
642642
643643 $ solrQuery .= ' AND timestamp:[ ' . $ from . ' TO ' . $ until . '] ' ;
644644
645- $ solr = Solr::getInstance ($ this ->settings ['solrcore ' ]);
645+ $ solrcore = $ this ->settings ['solrcore ' ] ?? false ;
646+ if (!$ solrcore ) {
647+ $ this ->logger ->error ('Solr core not configured ' );
648+ return $ documentSet ;
649+ }
650+ $ solr = Solr::getInstance ($ solrcore );
646651 if (!$ solr ->ready ) {
647652 $ this ->logger ->error ('Apache Solr not available ' );
648653 return $ documentSet ;
You can’t perform that action at this time.
0 commit comments