Views integration: make sure our own render_link doesn't output empty links (better)
authorYves Chedemois
Tue, 11 Nov 2008 00:34:46 +0000 (00:34 +0000)
committerYves Chedemois
Tue, 11 Nov 2008 00:34:46 +0000 (00:34 +0000)
includes/views/handlers/content_handler_field_multiple.inc

index ad00e4a..c57e816 100644 (file)
@@ -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 {