Skip to content
Snippets Groups Projects

added check if field is set

Merged Michael John Sage requested to merge mjsage/uw_theme_marketing:7.x-1.x into 7.x-1.x-uw_eng
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -123,7 +123,7 @@ $banner_xl[0]['img_location_xl'] = image_style_url('banner_xl', $field_uw_sph_ba
</div>
</div>
<?php
if ($node->field_banner_type['und'][0]['value'] == 'video') {
if (isset($node->field_banner_type) && $node->field_banner_type['und'][0]['value'] == 'video') {
?>
<div class="videoWrapper">
<video playsinline autoplay muted loop aria-label="<?php print $node->field_banner_video['und'][0]['description']; ?>">
Loading