fix checking for search result hits

This commit is contained in:
Uwe Steinmann 2023-01-06 13:46:33 +01:00
parent 8c86b4f61c
commit 26e6f24565

View File

@ -202,7 +202,7 @@ if($fullsearch) {
$facets = $searchresult['facets'];
$dcount = 0;
$fcount = 0;
if($searchresult) {
if($searchresult['hits']) {
foreach($searchresult['hits'] as $hit) {
if($hit['document_id'][0] == 'D') {
if($tmp = $dms->getDocument(substr($hit['document_id'], 1))) {