Closed (fixed)
Project:
Node Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2019 at 21:50 UTC
Updated:
5 Aug 2019 at 06:42 UTC
Jump to comment: Most recent
It's better to replace the line
if (isset($types[$bundle]) && $data[$type]) {
by
if (isset($types[$bundle]) && !empty($data[$type])) {
in node_token_tokens() function since $data may contain just 'node' key in some cases, and Undefined index warning is shown.
Comments
Comment #3
validoll commentedFixed. Thank you!
Comment #4
validoll commented