Skip to content

Commit

Permalink
fix error with empty ->documentArray
Browse files Browse the repository at this point in the history
  • Loading branch information
BFallert committed Sep 12, 2024
1 parent 4720725 commit 0b01f53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ private function getDocumentByUid(int $documentId)

if ($this->document) {
$doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, true);
$this->documentArray[] = $doc;
} else {
$this->logger->error('Invalid UID "' . $documentId . '" or PID "' . $this->settings['storagePid'] . '" for document loading');
}
Expand Down

0 comments on commit 0b01f53

Please sign in to comment.