summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit2017-07-11 18:33:39 (GMT)
committerRenato Goncalves de Araujo2017-07-11 18:33:39 (GMT)
commitf62e7ab490b824212855b20e92991dd8a24013fc (patch)
treeac7f4daeef5523727aa90931dafa4d4ba4d11d48
parentdc040f1725966eae939110f818870e5c05cbdf15 (diff)
Issue #2445863 by LOBsTerr, lukevanblerk, spgd01, RenatoG: Undefined index: field_name in theme_colorbox_image_formatter()7.x-2.x
-rw-r--r--colorbox.theme.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/colorbox.theme.inc b/colorbox.theme.inc
index 47f9e6f..0fb227e 100644
--- a/colorbox.theme.inc
+++ b/colorbox.theme.inc
@@ -130,7 +130,7 @@ function theme_colorbox_image_formatter($variables) {
break;
case 'field_page':
- $gallery_id = 'gallery-' . $field['field_name'];
+ $gallery_id = isset($field['field_name']) ? 'gallery-' . $field['field_name'] : 'gallery-page';
break;
case 'custom':