Skip to content

Commit

Permalink
Default to an array
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanThompson committed Jan 24, 2022
1 parent 8c7e2cd commit 2e0fd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/User/Permission/PermissionFormSections.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function handle(PermissionFormBuilder $builder, AddonCollection $addons,
function ($permission) use ($namespace) {
return str_replace('.', '_', $namespace . '::' . $permission);
},
array_keys(array_get($group, 'permissions'))
array_keys(array_get($group, 'permissions', []))
);
}
}
Expand Down

0 comments on commit 2e0fd3f

Please sign in to comment.