Index: lightbox2.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lightbox2/lightbox2.module,v
retrieving revision 1.16.2.17.2.79
diff -u -p -r1.16.2.17.2.79 lightbox2.module
--- lightbox2.module 2 May 2008 22:27:22 -0000 1.16.2.17.2.79
+++ lightbox2.module 2 May 2008 23:24:31 -0000
@@ -1022,7 +1022,10 @@ function theme_imagefield_image_imagecac
     if (!empty($target)) {
       $attributes = array('target' => $target);
     }
-    $node_link = '<br /><br />'. l(variable_get('lightbox2_node_link_text', 'View Image Details'), 'node/'. $item['nid'], $attributes);
+    $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');
+    if (!empty($node_link_text)) {
+      $node_link = '<br /><br />'. l($node_link_text, 'node/'. $item['nid'], $attributes);
+    }
   }

   $link_attributes = array(
