Skip to content

Commit

Permalink
Merge pull request #689 from albig/fix-conditions-once-more
Browse files Browse the repository at this point in the history
Catch another case we get unwanted error messages in log file.
  • Loading branch information
Alexander Bigga authored Oct 13, 2021
2 parents cda9dcb + 7289cba commit d051efc
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 d051efc

Please sign in to comment.