projects
/
project/cck.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
ef84172
)
Views integration: make sure our own render_link doesn't output empty links (better)
author
Yves Chedemois
Tue, 11 Nov 2008 00:34:46 +0000 (
00:34
+0000)
committer
Yves Chedemois
Tue, 11 Nov 2008 00:34:46 +0000 (
00:34
+0000)
includes/views/handlers/content_handler_field_multiple.inc
patch
|
blob
|
blame
|
history
diff --git
a/includes/views/handlers/content_handler_field_multiple.inc
b/includes/views/handlers/content_handler_field_multiple.inc
index
ad00e4a
..
c57e816
100644
(file)
--- a/
includes/views/handlers/content_handler_field_multiple.inc
+++ b/
includes/views/handlers/content_handler_field_multiple.inc
@@
-241,7
+241,7
@@
class content_handler_field_multiple extends content_handler_field {
return parent::render_link($data, $values);
}
- if (!empty($this->options['link_to_node']) && $data) {
+ if (!empty($this->options['link_to_node']) && $data !== NULL && $data !== '') {
return l($data, "node/" . $values->nid, array('html' => TRUE));
}
else {