Commit 0e00f4e1 authored by frjo's avatar frjo
Browse files

#928950: Undefined property fix.

parent 16a93276
......@@ -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';
......
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