Skip to content

Commit

Permalink
[BUGFIX] Prevent 'trying to access array offset on value of type null…
Browse files Browse the repository at this point in the history
…' error in CategoryDefaultValueProvider
  • Loading branch information
twojtylak committed Oct 30, 2023
1 parent ce2dc48 commit b6ef07a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function addData(array $result): array
{
if ($result['command'] !== 'new' ||
$result['tableName'] !== 'sys_category' ||
$result['parentPageRow']['module'] !== 'blog') {
($result['parentPageRow']['module'] ?? null) !== 'blog') {
return $result;
}

Expand Down

0 comments on commit b6ef07a

Please sign in to comment.