Skip to content
Snippets Groups Projects

Resolve #3185869 "Trying to access array offset on value of type null"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -269,7 +269,7 @@ function workflow_execute_transition(WorkflowTransitionInterface $transition, $f
*/
function workflow_get_user_role_names($permission) {
static $roles = NULL;
if ($roles[$permission]) {
if (isset($roles[$permission])) {
return $roles[$permission];
}
Loading