Skip to content

Commit

Permalink
Check for getDoc equal null
Browse files Browse the repository at this point in the history
PHP Warning: Creating default object from empty value in
/var/www/webroot/public/typo3conf/ext/dlf/Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php line 119
  • Loading branch information
beatrycze-volk committed Jun 16, 2023
1 parent bc68218 commit 5013138
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 5013138

Please sign in to comment.