Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a user without access permissions tries to acces a URL like 'node/7/group' the following error occurs:
Undefined index: map in og_context_handler_node() on line 426 from og_context.module
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#3 | og_context-removed-notice-2.patch | 818 bytes | Blackice2999 |
#1 | og_context-removed-notice.patch | 1.33 KB | Blackice2999 |
Comments
Comment #1
Blackice2999 CreditAttribution: Blackice2999 commentedHi,
fixed missing existence check for map on menu item. (map only exist if a user has access to an item)
thanks
Dennis
Comment #2
amitaibuThanks.
I actually prefer to return early, e.g.:
Comment #3
Blackice2999 CreditAttribution: Blackice2999 commentedHi Amitaibu,
this make sense. Here the new patch.
Comment #4
amitaibuCommitted, thanks.