Skip to content

Commit

Permalink
Merge branch 'master' into is-iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer authored Jun 22, 2023
2 parents 2cf9e29 + 70fbfce commit 8cf1597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function($arguments, $cPid)

// Load document with current plugin parameters.
$this->loadDocument($queryParams['tx_dlf'], $cPid);
if ($this->document === null) {
if ($this->document === null || $this->document->getDoc() === null) {
return $type;
}
// Set PID for metadata definitions.
Expand Down Expand Up @@ -196,7 +196,7 @@ protected function loadDocument($requestData, int $pid)
}
}
} else {
$this->logger->error('Invalid UID "' . $requestData['id'] . '" or PID "' . $pid . '" for document loading');
$this->logger->error('Empty UID or invalid PID "' . $pid . '" for document loading');
}
}
}

0 comments on commit 8cf1597

Please sign in to comment.