Commit 90464053 authored by voleger's avatar voleger

Issue #2762979 by voleger: Notice: Undefined index: caption in theme_lightbox2_image()

parent 9a907bdd
...@@ -27,7 +27,7 @@ function theme_lightbox2_image($variables) { ...@@ -27,7 +27,7 @@ function theme_lightbox2_image($variables) {
$image_style = $variables['image_style']; $image_style = $variables['image_style'];
$node_id = $variables['node_id']; $node_id = $variables['node_id'];
$field_name = $variables['field_name']; $field_name = $variables['field_name'];
$caption = $variables['caption']; $caption = isset($variables['caption']) ? $variables['caption'] : 'hidden';
if (!$variables["lightbox_style"]) { if (!$variables["lightbox_style"]) {
$path['path'] = file_create_url($item['uri']); $path['path'] = file_create_url($item['uri']);
......
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