Commit 47382765 authored by merlinofchaos's avatar merlinofchaos

#102457: Spurious warnings when displayed node has no terms

parent 27637d23
......@@ -81,6 +81,7 @@ Views 4.7.x-dev
o 103115: Validation for individual views fields/etc was never called.
o 101275: Prevent node.nid from being added as a field twice (was happening when sorting)
o 102746: * was being used instead of actual wildcard in feed URLs.
o 102457: Spurious warnings when displayed node has no terms
New Features:
o 89421: New last changed sort / filter / field
......
......@@ -254,7 +254,7 @@ function views_handler_field_allterms($fieldinfo, $fielddata, $value, $data) {
$node->taxonomy = $terms;
$links = taxonomy_link('taxonomy terms', $node);
}
return theme('links', $links);
return return !empty($links) ? theme('links', $links) : '';
}
/**
......
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