#928950: Undefined property fix.
authorFredrik Jonsson
Fri, 1 Oct 2010 20:51:46 +0000 (20:51 +0000)
committerFredrik Jonsson
Fri, 1 Oct 2010 20:51:46 +0000 (20:51 +0000)
colorbox.theme.inc

index d90ec6f..15baf19 100644 (file)
@@ -48,7 +48,7 @@ function theme_colorbox_image_formatter($variables) {
   }
 
   // Build the gallery id.
-  $nid = $node->nid ? $node->nid : 'nid';
+  $nid = !empty($node->nid) ? $node->nid : 'nid';
   switch (variable_get('colorbox_imagefield_gallery', 1)) {
     case 0:
       $gallery_id = 'all';