I'm having an issue with an undefined index I really could use some help with.
This is the error I get:
Notice: Undefined index: und in include() (line 15)
This is what my line 15 looks like:
<div class="House_Header_coupon_link">
<a href="
<?php print $node->field_house_coupon_link['und'][0]['url']; ?>
" style="color:#
<?php print $node->field_house_coupon_link_hex_code['und'][0]['safe_value']; ?>
">
<?php print $node->field_house_coupon_link['und'][0]['title']; ?>
</a>
</div>
I know the error is happening because sometime the field is not given a value and allowed to be blank. I'm using Drupal 7.23 and I've tried using the isset method mentioned elsewhere on this site but it's not working and I'm out of ideas
Thanks!