Skip to content

Commit

Permalink
Catch another case we get unwanted error messages in log file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bigga committed Oct 12, 2021
1 parent cda9dcb commit 7289cba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ function($arguments, $cPid)

$type = 'undefined';

// It happens that $queryParams is an empty array.
if (empty($queryParams)) {
// It happens that $queryParams is an empty array or does not contain a key 'tx_dlf'
// in case of other contexts. In this case we have to return here to avoid log messages.
if (empty($queryParams) || !isset($queryParams[$this->prefixId])) {
return $type;
}

Expand Down

0 comments on commit 7289cba

Please sign in to comment.