Skip to content

Commit

Permalink
[BUGFIX] Remove double check for not null on $document property (#1086
Browse files Browse the repository at this point in the history
)

Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored Nov 7, 2023
1 parent 89ee8a1 commit 6ca427d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function loadDocument(int $documentId = 0): void

if ($this->document !== null) {
$doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, true);
if ($this->document !== null && $doc !== null) {
if ($doc !== null) {
$this->document->setCurrentDocument($doc);
} else {
$this->logger->error('Failed to load document with record ID "' . $this->requestData['recordId'] . '"');
Expand Down

0 comments on commit 6ca427d

Please sign in to comment.