summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleh Vehera2018-10-05 13:57:06 (GMT)
committerOleh Vehera2018-10-05 13:57:06 (GMT)
commit9046405302c55ad7fb820bc811a044029f4694de (patch)
tree53efec0b887f837f1105f5ef9900ece3a10e107d
parent9a907bdd3baf1d1d7e51b61ebd99bd1dd5075597 (diff)
Issue #2762979 by voleger: Notice: Undefined index: caption in theme_lightbox2_image()
-rw-r--r--lightbox2.formatter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lightbox2.formatter.inc b/lightbox2.formatter.inc
index 7907cab..9224c2a 100644
--- a/lightbox2.formatter.inc
+++ b/lightbox2.formatter.inc
@@ -27,7 +27,7 @@ function theme_lightbox2_image($variables) {
$image_style = $variables['image_style'];
$node_id = $variables['node_id'];
$field_name = $variables['field_name'];
- $caption = $variables['caption'];
+ $caption = isset($variables['caption']) ? $variables['caption'] : 'hidden';
if (!$variables["lightbox_style"]) {
$path['path'] = file_create_url($item['uri']);