Commit c54d4ef4 authored by akalam's avatar akalam

Issue #3015561 by mr.york, akalam: Notice: Undefined index: node in...

Issue #3015561 by mr.york, akalam: Notice: Undefined index: node in node_authlink_tokens() (line 459 of node_authlink/node_authlink.module)
parent 3bda72c4
......@@ -447,11 +447,11 @@ function node_authlink_token_info() {
* Implements hook_tokens().
*/
function node_authlink_tokens($type, $tokens, array $data = [], array $options = [], BubbleableMetadata $bubbleable_metadata) {
if ($type != 'node') {
if ($type != 'node' || empty($data['node'])) {
return;
}
//dpm(func_get_args());
$replacements = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment