Skip to content
Snippets Groups Projects

Issue #3083778 Add null checks in nodeaccess_node_grants()

Addresses a warning that was occurring when trying to access array offsets on potentially null values in the nodeaccess_node_grants() function.

Changes:

  • Add a check to ensure $map_rid_gid is an array before iterating
  • Add a check to ensure each $role_id exists in $map_rid_gid before accessing

These changes prevent "Trying to access array offset on value of type null" warnings and make the function more robust against unexpected data.

Closes #3083778

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading