Skip to content

Commit b6ef07a

Browse files
committed
[BUGFIX] Prevent 'trying to access array offset on value of type null' error in CategoryDefaultValueProvider
1 parent ce2dc48 commit b6ef07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Backend/FormDataProvider/CategoryDefaultValueProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function addData(array $result): array
1919
{
2020
if ($result['command'] !== 'new' ||
2121
$result['tableName'] !== 'sys_category' ||
22-
$result['parentPageRow']['module'] !== 'blog') {
22+
($result['parentPageRow']['module'] ?? null) !== 'blog') {
2323
return $result;
2424
}
2525

0 commit comments

Comments
 (0)