Undefined index: map in _token_filter_filter_tokens()

Created on 18 July 2015, over 9 years ago
Updated 16 January 2025, about 1 month ago

Problem/Motivation

Undefined index: map in _token_filter_filter_tokens() in token_filter.module. Because menu_get_item() can return a fully populated $item that the user doesn't have access to. And if the user does not have access, the 'map' doesn't get assigned. Resulting in the undefined index error.

Proposed resolution

Check access.

Remaining tasks

RTBC

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

heddn Nicaragua

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024