diff --git a/includes/Specials/BrowseData/SemanticResultPrinter.php b/includes/Specials/BrowseData/SemanticResultPrinter.php index 42512c6d..b23b855a 100644 --- a/includes/Specials/BrowseData/SemanticResultPrinter.php +++ b/includes/Specials/BrowseData/SemanticResultPrinter.php @@ -69,10 +69,12 @@ private static function createGetSmwQueryResult( $res, $num ) { $furtherRes = $num !== null && $count > $num; return static function ( $query, $mainlabel, $printouts ) use ( $qr, $store, $furtherRes ) { - $printrequest = new PrintRequest( PrintRequest::PRINT_THIS, $mainlabel ); - $main_printout = []; - $main_printout[$printrequest->getHash()] = $printrequest; - $printouts = array_merge( $main_printout, $printouts ); + if ( $mainlabel !== '-' ) { + $printrequest = new PrintRequest( PrintRequest::PRINT_THIS, $mainlabel ); + $main_printout = []; + $main_printout[ $printrequest->getHash() ] = $printrequest; + $printouts = array_merge( $main_printout, $printouts ); + } return new QueryResult( $printouts, $query, $qr, $store, $furtherRes ); }; }