Skip to content
Snippets Groups Projects
Commit a5eeee63 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Array access on null in ConditionMatcher

Resolves: #99088
Releases: main, 11.5
Change-Id: I67f799fdca4d736c36775d50b5ac753eba93ba52
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76601


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 2b8123d0
Branches
Tags
No related merge requests found
...@@ -144,7 +144,7 @@ class ConditionMatcher extends AbstractConditionMatcher ...@@ -144,7 +144,7 @@ class ConditionMatcher extends AbstractConditionMatcher
$pageId = $id; $pageId = $id;
} else { } else {
$record = BackendUtility::getRecordWSOL($table, abs($id), '*', '', false); $record = BackendUtility::getRecordWSOL($table, abs($id), '*', '', false);
$pageId = (int)$record['pid']; $pageId = (int)($record['pid'] ?? 0);
} }
} }
return $pageId; return $pageId;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment