Commit 4a7b4601 authored by John Fiala's avatar John Fiala
Browse files

Issue #1056364 by the_phi:Checking that ['settings']['enable_tokens'] exists...

Issue #1056364 by the_phi:Checking that ['settings']['enable_tokens'] exists before the value is compared.
parent 200ed1bc
......@@ -351,7 +351,7 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$node) {
// Replace URL tokens.
if ($instance['settings']['enable_tokens']) {
if (isset($instance['settings']['enable_tokens']) && $instance['settings']['enable_tokens']) {
global $user;
// Load the node if necessary for nodes in views.
$token_node = isset($node->nid) ? node_load($node->nid) : $node;
Supports Markdown
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