diff --git a/Classes/Controller/AbstractController.php b/Classes/Controller/AbstractController.php index c10880f48..f933860a9 100644 --- a/Classes/Controller/AbstractController.php +++ b/Classes/Controller/AbstractController.php @@ -512,14 +512,11 @@ protected function buildSimplePagination(PaginationInterface $pagination, Pagina */ private function getDocumentByUid(int $documentId) { - // TODO: implement multiView as it is in getDocumentByUrl $doc = null; $this->document = $this->documentRepository->findOneByIdAndSettings($documentId); if ($this->document) { $doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, true); - // fix for count(): Argument #1 ($value) must be of type Countable|array, null given - $this->documentArray[] = $doc; } else { $this->logger->error('Invalid UID "' . $documentId . '" or PID "' . $this->settings['storagePid'] . '" for document loading'); }